From 48ffabbaf8536694427336d365ca79fa2d098ae9 Mon Sep 17 00:00:00 2001 From: Vinay Gonuguntla Date: Wed, 4 Sep 2024 10:14:09 -0700 Subject: [PATCH] [MESH-3865]- Fixing else if --- admiral/pkg/controller/common/common.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admiral/pkg/controller/common/common.go b/admiral/pkg/controller/common/common.go index 4382e64d..48663d25 100644 --- a/admiral/pkg/controller/common/common.go +++ b/admiral/pkg/controller/common/common.go @@ -707,9 +707,13 @@ func GenerateUniqueNameForVS(originNamespace string, vsName string) string { if originNamespace == "" && vsName == "" { return "" - } else if originNamespace == "" { + } + + if originNamespace == "" { return vsName - } else if vsName == "" { + } + + if vsName == "" { return originNamespace }