From 45b286d6313e4f8817cac5c40a32dcdcedbca31d Mon Sep 17 00:00:00 2001
From: Fabian Seidl <fabian.b.seidl@stud.h-da.de>
Date: Thu, 28 Apr 2022 10:03:57 +0200
Subject: [PATCH] linter was unhappy

---
 controller/northbound/server/auth_interceptor.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/controller/northbound/server/auth_interceptor.go b/controller/northbound/server/auth_interceptor.go
index 96b11971e..501893e6f 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)
-- 
GitLab