aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/accountcmd.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-09 15:38:03 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-09 15:38:03 +0800
commit4ea493e7eb9fa3b3695a22487de2605e8da1d2fa (patch)
tree1a5e92185424d3b300a3516b25c9ebe10f807c90 /cmd/geth/accountcmd.go
parentc60f6f62147048f80a0e092b483318af88b5d78b (diff)
downloaddexon-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar.gz
dexon-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.tar.zst
dexon-4ea493e7eb9fa3b3695a22487de2605e8da1d2fa.zip
cmd: various golint fixes (#16700)
* cmd: various golint fixes * cmd: update to pr change request * cmd: update to pr change request
Diffstat (limited to 'cmd/geth/accountcmd.go')
-rw-r--r--cmd/geth/accountcmd.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go
index 0db5c4ce0..071be8539 100644
--- a/cmd/geth/accountcmd.go
+++ b/cmd/geth/accountcmd.go
@@ -340,7 +340,7 @@ func importWallet(ctx *cli.Context) error {
if len(keyfile) == 0 {
utils.Fatalf("keyfile must be given as argument")
}
- keyJson, err := ioutil.ReadFile(keyfile)
+ keyJSON, err := ioutil.ReadFile(keyfile)
if err != nil {
utils.Fatalf("Could not read wallet file: %v", err)
}
@@ -349,7 +349,7 @@ func importWallet(ctx *cli.Context) error {
passphrase := getPassPhrase("", false, 0, utils.MakePasswordList(ctx))
ks := stack.AccountManager().Backends(keystore.KeyStoreType)[0].(*keystore.KeyStore)
- acct, err := ks.ImportPreSaleKey(keyJson, passphrase)
+ acct, err := ks.ImportPreSaleKey(keyJSON, passphrase)
if err != nil {
utils.Fatalf("%v", err)
}