diff options
author | Martin Holst Swende <martin@swende.se> | 2019-06-18 15:46:56 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2019-06-18 15:46:56 +0800 |
commit | 2046d66fe5146911620168caefa17ce73d3b6085 (patch) | |
tree | 84b7a731a4b9e4a1380ad2917a09ecd31ac99007 | |
parent | d6ccfd92f736bdfac1a9ed094d201d2a3256dfb2 (diff) | |
download | go-tangerine-2046d66fe5146911620168caefa17ce73d3b6085.tar go-tangerine-2046d66fe5146911620168caefa17ce73d3b6085.tar.gz go-tangerine-2046d66fe5146911620168caefa17ce73d3b6085.tar.bz2 go-tangerine-2046d66fe5146911620168caefa17ce73d3b6085.tar.lz go-tangerine-2046d66fe5146911620168caefa17ce73d3b6085.tar.xz go-tangerine-2046d66fe5146911620168caefa17ce73d3b6085.tar.zst go-tangerine-2046d66fe5146911620168caefa17ce73d3b6085.zip |
accounts/keystore: fix #19707, avoid keyword as variable name
-rw-r--r-- | accounts/keystore/keystore_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go index 6fb0a7808..a691c5062 100644 --- a/accounts/keystore/keystore_test.go +++ b/accounts/keystore/keystore_test.go @@ -379,9 +379,9 @@ func tmpKeyStore(t *testing.T, encrypted bool) (string, *KeyStore) { if err != nil { t.Fatal(err) } - new := NewPlaintextKeyStore + newKs := NewPlaintextKeyStore 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) } |