Fix golint issues

This commit is contained in:
Ed Tan 2018-09-30 15:43:50 -04:00
parent 8c75d85b60
commit 2c024d8caf

View file

@ -357,9 +357,8 @@ func (b *bitbucketConnector) getGroups(ctx context.Context, client *http.Client,
filteredTeams := filterTeams(bitbucketTeams, b.teams) filteredTeams := filterTeams(bitbucketTeams, b.teams)
if len(filteredTeams) == 0 { if len(filteredTeams) == 0 {
return nil, fmt.Errorf("bitbucket: user %q not in required teams", userLogin) return nil, fmt.Errorf("bitbucket: user %q not in required teams", userLogin)
} else {
return filteredTeams, nil
} }
return filteredTeams, nil
} else if groupScope { } else if groupScope {
return bitbucketTeams, nil return bitbucketTeams, nil
} }