mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 08:34:47 +08:00
bug squashin
This commit is contained in:
parent
ebcaf7e244
commit
4ffd6cfe02
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,9 @@ func GetPeers(networkName string) (map[string]string, error) {
|
|||
return nil, err
|
||||
}
|
||||
currentDataMap := make(map[string]string)
|
||||
if IsEmptyRecord(err) {
|
||||
return currentDataMap, nil
|
||||
}
|
||||
err = json.Unmarshal([]byte(record), ¤tDataMap)
|
||||
return currentDataMap, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue