misc lint

This commit is contained in:
Thomas Tendyck 2022-03-25 12:50:16 +01:00 committed by Thomas Tendyck
parent cece88b6a0
commit 6bbb783af8
3 changed files with 4 additions and 5 deletions

View file

@ -380,7 +380,7 @@ type stubRoleAssignmentsAPI struct {
}
func (a *stubRoleAssignmentsAPI) Create(ctx context.Context, scope string, roleAssignmentName string, parameters authorization.RoleAssignmentCreateParameters) (authorization.RoleAssignment, error) {
a.createCounter += 1
a.createCounter++
if len(a.createErrors) == 0 {
return authorization.RoleAssignment{}, nil
}