Fix golint issues
This commit is contained in:
parent
8c75d85b60
commit
2c024d8caf
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user