Commit 2c024d8c authored by Ed Tan's avatar Ed Tan

Fix golint issues

parent 8c75d85b
...@@ -357,9 +357,8 @@ func (b *bitbucketConnector) getGroups(ctx context.Context, client *http.Client, ...@@ -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
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment