Update networks.go

Co-authored-by: David Newhall II <david@sleepers.pro>
This commit is contained in:
Andrew Regner
2020-09-11 14:52:46 -07:00
committed by GitHub
co-authored by David Newhall II
parent 95f017cae6
commit 23dc92dbfa
+5 -1
View File
@@ -20,7 +20,11 @@ func (u *Unifi) GetNetworks(sites []*Site) ([]Network, error) {
}
for _, data := range response.Data {
network := u.parseNetwork(data, site.SiteName)
network, err := u.parseNetwork(data, site.SiteName)
if err != nil {
return networks, err
}
networks = append(networks, *network)
}
}