From b72f36df287fc9c60fb53d9f005dd0ab5fa7ddc2 Mon Sep 17 00:00:00 2001 From: Laura Henning Date: Mon, 7 Oct 2024 07:51:56 +0000 Subject: [PATCH] fix: linter --- pkg/factory/config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/factory/config.go b/pkg/factory/config.go index bf183c91..7b3a6401 100644 --- a/pkg/factory/config.go +++ b/pkg/factory/config.go @@ -493,7 +493,11 @@ func (u *UserPlaneInformation) Validate() (result bool, err error) { } } - return result, error(validationErrors) + if len(validationErrors) > 0 { + return result, error(validationErrors) + } else { + return false, nil + } } // UPNode represent the user plane node