bugfix, if/else
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Stefan Hoffmann 2021-02-14 00:28:49 +01:00
parent 7e1841a244
commit ad8088f1c1

View File

@ -255,7 +255,6 @@ func processAPIs() {
nodes = append(nodes, mvNodes...)
links = append(links, mvLinks...)
}
// assemble final struct
o := output{
Timestamp: time.Now().Format(iso8601),
@ -547,7 +546,6 @@ func addmvDevices(d mvDevices) ([]node, []link) {
Model: mvNode.Model,
})
} else {
if mvNode.Location.Latitude == 0 {
nodes = append(nodes, node{
Firstseen: mvNode.Firstseen,
Lastseen: mvNode.Lastseen,
@ -583,7 +581,6 @@ func addmvDevices(d mvDevices) ([]node, []link) {
})
}
}
}
for i := range d.Links {
mvNode := d.Links[i]
links = append(links, link{