Skip to content

Commit

Permalink
remove redundant check from test
Browse files Browse the repository at this point in the history
  • Loading branch information
agnes-gajda committed Feb 7, 2024
1 parent 2a17a47 commit 13ae30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fac/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 13ae30c

Please sign in to comment.