diff --git a/internal/fac/extensions.go b/internal/fac/extensions.go index 23849df..4636266 100644 --- a/internal/fac/extensions.go +++ b/internal/fac/extensions.go @@ -25,7 +25,7 @@ func (e ErrorBadRegex) Error() string { // MatchAWSGroups will filter out the AWS groups that don't match the regex. // Returns an error on failure, a list of AWS groups that match on success. func MatchAWSGroups(awsGroups []*aws.Group, matchRegex string) ([]*aws.Group, error) { - if awsGroups == nil || len(awsGroups) == 0 { + if len(awsGroups) == 0 { return nil, ErrNoAWSGroups }