diff options
author | Matthew Halpern <matthalp@google.com> | 2019-02-15 07:02:11 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-02-15 07:02:11 +0800 |
commit | fa87929a2fbed11c614d57d43cd64ced15ba80b8 (patch) | |
tree | 981deee9159b1489efb5eb97fd9f1707876d5768 /cmd/swarm/access_test.go | |
parent | e26a119c9b83e816a8ce9b0afdd6f2c82e61062d (diff) | |
download | go-tangerine-fa87929a2fbed11c614d57d43cd64ced15ba80b8.tar go-tangerine-fa87929a2fbed11c614d57d43cd64ced15ba80b8.tar.gz go-tangerine-fa87929a2fbed11c614d57d43cd64ced15ba80b8.tar.bz2 go-tangerine-fa87929a2fbed11c614d57d43cd64ced15ba80b8.tar.lz go-tangerine-fa87929a2fbed11c614d57d43cd64ced15ba80b8.tar.xz go-tangerine-fa87929a2fbed11c614d57d43cd64ced15ba80b8.tar.zst go-tangerine-fa87929a2fbed11c614d57d43cd64ced15ba80b8.zip |
cmd: prefer nil slices over zero-length slices (#19077)
Diffstat (limited to 'cmd/swarm/access_test.go')
-rw-r--r-- | cmd/swarm/access_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/swarm/access_test.go b/cmd/swarm/access_test.go index 967ef2742..0898d33bc 100644 --- a/cmd/swarm/access_test.go +++ b/cmd/swarm/access_test.go @@ -397,7 +397,7 @@ func testACT(t *testing.T, bogusEntries int) { } ref := matches[0] - grantees := []string{} + var grantees []string for i, v := range cluster.Nodes { if i == nodeToSkip { continue @@ -408,7 +408,7 @@ func testACT(t *testing.T, bogusEntries int) { } if bogusEntries > 0 { - bogusGrantees := []string{} + var bogusGrantees []string for i := 0; i < bogusEntries; i++ { prv, err := ecies.GenerateKey(rand.Reader, DefaultCurve, nil) |