accounts/keystore: fix #19707, avoid keyword as variable name

ChrisChinchilla-patch-3
Martin Holst Swende 5 years ago
parent d6ccfd92f7
commit 2046d66fe5
No known key found for this signature in database
GPG Key ID: 683B438C05A5DDF0
  1. 6
      accounts/keystore/keystore_test.go

@ -379,9 +379,9 @@ func tmpKeyStore(t *testing.T, encrypted bool) (string, *KeyStore) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
new := NewPlaintextKeyStore newKs := NewPlaintextKeyStore
if encrypted { if encrypted {
new = func(kd string) *KeyStore { return NewKeyStore(kd, veryLightScryptN, veryLightScryptP) } newKs = func(kd string) *KeyStore { return NewKeyStore(kd, veryLightScryptN, veryLightScryptP) }
} }
return d, new(d) return d, newKs(d)
} }

Loading…
Cancel
Save