Use make instead of new for allocation

pull/796/head
Gustav Simonsson 10 years ago
parent 9d2a156453
commit 4d1887093d
  1. 2
      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 {

Loading…
Cancel
Save