cmd: prefer nil slices over zero-length slices (#19077)

This commit is contained in:
Matthew Halpern
2019-02-14 15:02:11 -08:00
committed by Péter Szilágyi
parent e26a119c9b
commit fa87929a2f
8 changed files with 12 additions and 12 deletions

View File

@ -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)