From: Pawel Wieczorek
Date: Fri, 20 Nov 2020 15:19:34 +0000 (+0100)
Subject: Unify variable initialization
X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=25c2fa08ffb762706f9e0600311ae5226d8c6b0a;p=integration.git
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
(cherry picked from commit df618d1b68cd4907db084a2f73cc43c6bc2bb12a)
---
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 {