diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-25 22:58:52 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-27 03:00:18 +0800 |
commit | 4ec38e39320ee9abccd96da765a9c65fccd04151 (patch) | |
tree | 3f57aebae8bd42f766b80a3db5e3b22328e9a181 /cmd/ethereum/main.go | |
parent | 23e41a57ad7e7cb4bc5a1cbad28bbf8d65907fdd (diff) | |
download | go-tangerine-4ec38e39320ee9abccd96da765a9c65fccd04151.tar go-tangerine-4ec38e39320ee9abccd96da765a9c65fccd04151.tar.gz go-tangerine-4ec38e39320ee9abccd96da765a9c65fccd04151.tar.bz2 go-tangerine-4ec38e39320ee9abccd96da765a9c65fccd04151.tar.lz go-tangerine-4ec38e39320ee9abccd96da765a9c65fccd04151.tar.xz go-tangerine-4ec38e39320ee9abccd96da765a9c65fccd04151.tar.zst go-tangerine-4ec38e39320ee9abccd96da765a9c65fccd04151.zip |
common: remove WriteFile and ReadAllFile (use ioutil instead)
Diffstat (limited to 'cmd/ethereum/main.go')
-rw-r--r-- | cmd/ethereum/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index 57729b206..6bbe1044f 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -355,10 +355,11 @@ func getPassPhrase(ctx *cli.Context, desc string, confirmation bool) (passphrase passphrase = auth } else { - var err error - if passphrase, err = common.ReadAllFile(passfile); err != nil { + passbytes, err := ioutil.ReadFile(passfile) + if err != nil { utils.Fatalf("Unable to read password file '%s': %v", passfile, err) } + passphrase = string(passbytes) } } return |