From b0bf12ec872587d56b974430efc85c55ce9fe5a9 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Fri, 24 Apr 2015 19:40:28 +0200 Subject: [PATCH] Remove unneeded allocation --- crypto/key_store_plain.go | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/key_store_plain.go b/crypto/key_store_plain.go index a7ad385c5..9bbaf1c15 100644 --- a/crypto/key_store_plain.go +++ b/crypto/key_store_plain.go @@ -117,7 +117,6 @@ func GetKeyAddresses(keysDirPath string) (addresses [][]byte, err error) { if err != nil { return nil, err } - addresses = make([][]byte, 0) for _, fileInfo := range fileInfos { address, err := hex.DecodeString(fileInfo.Name()) if err != nil {