From cd56d3bca7bd79654710c64fdc5ff7d098b4a7ef Mon Sep 17 00:00:00 2001
From: Fabian Seidl <fabian.seidl@h-da.de>
Date: Wed, 12 Mar 2025 09:02:17 +0100
Subject: [PATCH] fix formatting

---
 controller/northbound/server/role_test.go | 3 +--
 controller/northbound/server/user_test.go | 6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/controller/northbound/server/role_test.go b/controller/northbound/server/role_test.go
index 51db6a7e8..21a25d3ee 100644
--- a/controller/northbound/server/role_test.go
+++ b/controller/northbound/server/role_test.go
@@ -592,8 +592,7 @@ func TestRole_DeleteRoles(t *testing.T) {
 			wantErr: true,
 			validationErrors: []*validate.Violation{
 				{
-					//FieldPath:    stringToPointer("role_name"),
-					Field:        &validate.FieldPath{Elements: []*validate.FieldPathElement{&validate.FieldPathElement{FieldName: stringToPointer("role_name")}}},
+					Field:        &validate.FieldPath{Elements: []*validate.FieldPathElement{{FieldName: stringToPointer("role_name")}}},
 					ConstraintId: stringToPointer("required"),
 					Message:      stringToPointer("value is required"),
 				},
diff --git a/controller/northbound/server/user_test.go b/controller/northbound/server/user_test.go
index 01a65cbae..c204e501f 100644
--- a/controller/northbound/server/user_test.go
+++ b/controller/northbound/server/user_test.go
@@ -365,8 +365,7 @@ func TestUser_UpdateUsers(t *testing.T) {
 			wantErr: true,
 			validationErrors: []*validate.Violation{
 				{
-					// FieldPath:    stringToPointer("name"),
-					Field:        &validate.FieldPath{Elements: []*validate.FieldPathElement{&validate.FieldPathElement{FieldName: stringToPointer("name")}}},
+					Field:        &validate.FieldPath{Elements: []*validate.FieldPathElement{{FieldName: stringToPointer("name")}}},
 					ConstraintId: stringToPointer("required"),
 					Message:      stringToPointer("value is required"),
 				},
@@ -427,8 +426,7 @@ func TestUser_DeleteUsers(t *testing.T) {
 			wantErr: true,
 			validationErrors: []*validate.Violation{
 				{
-					//FieldPath:    stringToPointer("name"),
-					Field:        &validate.FieldPath{Elements: []*validate.FieldPathElement{&validate.FieldPathElement{FieldName: stringToPointer("name")}}},
+					Field:        &validate.FieldPath{Elements: []*validate.FieldPathElement{{FieldName: stringToPointer("name")}}},
 					ConstraintId: stringToPointer("required"),
 					Message:      stringToPointer("value is required"),
 				},
-- 
GitLab