Skip to content
Snippets Groups Projects
Commit 45b286d6 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

linter was unhappy

parent e1e52eae
No related branches found
No related tags found
1 merge request!287Implement data persisting for user management
Pipeline #99911 passed
......@@ -35,11 +35,11 @@ func (auth AuthInterceptor) Unary() grpc.UnaryServerInterceptor {
case *apb.CreateUsersRequest:
if len(r.User) < 2 {
return handler(ctx, req)
} else {
err := auth.authorize(ctx, info.FullMethod)
if err != nil {
return nil, err
}
}
err := auth.authorize(ctx, info.FullMethod)
if err != nil {
return nil, err
}
default:
err := auth.authorize(ctx, info.FullMethod)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment