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