mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-23 03:51:09 +00:00
Use make instead of new for allocation
This commit is contained in:
parent
9d2a156453
commit
4d1887093d
@ -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…
Reference in New Issue
Block a user