Nested if can be replaced with else if CRT-A0011
Anti-pattern
Major
1 occurrence in this check
can replace 'else {if cond {}}' with 'else if cond {}'
2830				if pos, ok := visited[loc.GetUuid()]; !ok {
2831					locs.Locations = append(locs.GetLocations(), loc)
2832					visited[loc.GetUuid()] = len(locs.Locations) - 1
2833				} else {2834					if pos < len(locs.GetLocations()) {
2835						locs.GetLocations()[pos].Ips = append(locs.GetLocations()[pos].Ips, loc.GetIps()...)
2836						if s := locs.GetLocations()[pos].Name; len(s) == 0 {