aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-04-24 23:41:38 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-04-24 23:41:38 +0800
commit4d1887093df1fd07a680eaaff31351d921ce9c4d (patch)
tree3ae66d668d3d4758f58322c7c180857663dade9e /crypto
parent9d2a156453eeb8bb3c530244016740d5c2794427 (diff)
downloadgo-tangerine-4d1887093df1fd07a680eaaff31351d921ce9c4d.tar.gz
go-tangerine-4d1887093df1fd07a680eaaff31351d921ce9c4d.tar.zst
go-tangerine-4d1887093df1fd07a680eaaff31351d921ce9c4d.zip
Use make instead of new for allocation
Diffstat (limited to 'crypto')
-rw-r--r--crypto/key_store_plain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/key_store_plain.go b/crypto/key_store_plain.go
index 99e0fa440..a7ad385c5 100644
--- a/crypto/key_store_plain.go
+++ b/crypto/key_store_plain.go
@@ -117,7 +117,7 @@ func GetKeyAddresses(keysDirPath string) (addresses [][]byte, err error) {
if err != nil {
return nil, err
}
- addresses = *new([][]byte)
+ addresses = make([][]byte, 0)
for _, fileInfo := range fileInfos {
address, err := hex.DecodeString(fileInfo.Name())
if err != nil {