aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-04-25 01:40:28 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-04-25 01:40:28 +0800
commitb0bf12ec872587d56b974430efc85c55ce9fe5a9 (patch)
treee72f64dbcf04569cd106ce59e2b1220d8eead13b /crypto
parent4d1887093df1fd07a680eaaff31351d921ce9c4d (diff)
downloaddexon-b0bf12ec872587d56b974430efc85c55ce9fe5a9.tar.gz
dexon-b0bf12ec872587d56b974430efc85c55ce9fe5a9.tar.zst
dexon-b0bf12ec872587d56b974430efc85c55ce9fe5a9.zip
Remove unneeded allocation
Diffstat (limited to 'crypto')
-rw-r--r--crypto/key_store_plain.go1
1 files changed, 0 insertions, 1 deletions
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 {