Skip to content

Commit 13ae30c

Browse files
committed
remove redundant check from test
1 parent 2a17a47 commit 13ae30c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/fac/extensions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (e ErrorBadRegex) Error() string {
2525
// MatchAWSGroups will filter out the AWS groups that don't match the regex.
2626
// Returns an error on failure, a list of AWS groups that match on success.
2727
func MatchAWSGroups(awsGroups []*aws.Group, matchRegex string) ([]*aws.Group, error) {
28-
if awsGroups == nil || len(awsGroups) == 0 {
28+
if len(awsGroups) == 0 {
2929
return nil, ErrNoAWSGroups
3030
}
3131

0 commit comments

Comments
 (0)