good morning!!!!

Skip to content
Snippets Groups Projects
Commit 4d188709 authored by Gustav Simonsson's avatar Gustav Simonsson
Browse files

Use make instead of new for allocation

parent 9d2a1564
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment