diff --git a/controller/northbound/server/auth_interceptor.go b/controller/northbound/server/auth_interceptor.go index 96b11971ec603ed40b898522a52562e97b994ade..501893e6f70b7d081da7508c52607f7b49f5b760 100644 --- a/controller/northbound/server/auth_interceptor.go +++ b/controller/northbound/server/auth_interceptor.go @@ -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)