aboutsummaryrefslogtreecommitdiffstats
path: root/test/security
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-11-20 16:19:34 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-11-26 08:16:11 +0000
commit25c2fa08ffb762706f9e0600311ae5226d8c6b0a (patch)
treec6fc29072d4b13788f18ac38d41c6b437d023d85 /test/security
parentce757c7345584c5769abee994a603b90570b264f (diff)
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 <p.wieczorek2@samsung.com> (cherry picked from commit df618d1b68cd4907db084a2f73cc43c6bc2bb12a)
Diffstat (limited to 'test/security')
-rw-r--r--test/security/sslendpoints/main.go2
1 files changed, 1 insertions, 1 deletions
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 {