Skip to content

Commit

Permalink
(fix) error checking for nil
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie committed Jul 24, 2020
1 parent 5e10fee commit 4a4eef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sync.go
Expand Up @@ -131,7 +131,7 @@ func (s *syncGSuite) SyncGroups() error {
var group *aws.Group

gg, err := s.aws.FindGroupByDisplayName(g.Name)
if err != aws.ErrGroupNotFound {
if err != nil && err != aws.ErrGroupNotFound {
return err
}

Expand Down

0 comments on commit 4a4eef3

Please sign in to comment.