Skip to content

Commit 2046d66

Browse files
committed
accounts/keystore: fix #19707, avoid keyword as variable name
1 parent d6ccfd9 commit 2046d66

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎accounts/keystore/keystore_test.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,9 @@ func tmpKeyStore(t *testing.T, encrypted bool) (string, *KeyStore) {
379379
if err != nil {
380380
t.Fatal(err)
381381
}
382-
new := NewPlaintextKeyStore
382+
newKs := NewPlaintextKeyStore
383383
if encrypted {
384-
new = func(kd string) *KeyStore { return NewKeyStore(kd, veryLightScryptN, veryLightScryptP) }
384+
newKs = func(kd string) *KeyStore { return NewKeyStore(kd, veryLightScryptN, veryLightScryptP) }
385385
}
386-
return d, new(d)
386+
return d, newKs(d)
387387
}

0 commit comments

Comments
 (0)