From b9b3efb09f9281a5859646d2dcf36b5813132efb Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 9 Jan 2017 11:16:06 +0100 Subject: all: fix ineffectual assignments and remove uses of crypto.Sha3 go get github.com/gordonklaus/ineffassign ineffassign . --- node/config_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'node') diff --git a/node/config_test.go b/node/config_test.go index d18732fdb..c0eda72c2 100644 --- a/node/config_test.go +++ b/node/config_test.go @@ -121,8 +121,7 @@ func TestNodeKeyPersistency(t *testing.T) { if _, err := os.Stat(keyfile); err != nil { t.Fatalf("node key not persisted to data directory: %v", err) } - key, err = crypto.LoadECDSA(keyfile) - if err != nil { + if _, err = crypto.LoadECDSA(keyfile); err != nil { t.Fatalf("failed to load freshly persisted node key: %v", err) } blob1, err := ioutil.ReadFile(keyfile) -- cgit