From df618d1b68cd4907db084a2f73cc43c6bc2bb12a Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Fri, 20 Nov 2020 16:19:34 +0100
Subject: Unify variable initialization
It is not possible to know "expected fails" list length upfront, hence
there is no need to call "make" on "xfails" map - there are no
optimization profits.
Issue-ID: INT-1582
Change-Id: I0e21d83098359359d17661e6265760d7e95739b9
Signed-off-by: Pawel Wieczorek
---
test/security/sslendpoints/main.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'test/security/sslendpoints')
diff --git a/test/security/sslendpoints/main.go b/test/security/sslendpoints/main.go
index ce5948cc5..ddad51c68 100644
--- a/test/security/sslendpoints/main.go
+++ b/test/security/sslendpoints/main.go
@@ -47,7 +47,7 @@ func main() {
listOptions = metav1.ListOptions{FieldSelector: "metadata.namespace=" + *namespace}
}
- xfails := make(map[uint16]string)
+ var xfails map[uint16]string
if *xfailName != "" {
xfailFile, err := os.Open(*xfailName)
if err != nil {
--
cgit 1.2.3-korg