mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-23 03:51:09 +00:00
Remove unneeded allocation
This commit is contained in:
parent
4d1887093d
commit
b0bf12ec87
@ -117,7 +117,6 @@ func GetKeyAddresses(keysDirPath string) (addresses [][]byte, err error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
addresses = make([][]byte, 0)
|
|
||||||
for _, fileInfo := range fileInfos {
|
for _, fileInfo := range fileInfos {
|
||||||
address, err := hex.DecodeString(fileInfo.Name())
|
address, err := hex.DecodeString(fileInfo.Name())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user