bugfix, if/else
This commit is contained in:
parent
7e1841a244
commit
ad8088f1c1
3
main.go
3
main.go
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user