cmd/tailscale/cli: appease staticcheck

reviewable/pr692/r1
Brad Fitzpatrick 2020-08-17 13:01:20 -07:00
parent 337c86b89d
commit 771e9541c7
1 changed files with 1 additions and 4 deletions

View File

@ -135,10 +135,7 @@ func printReport(dm *tailcfg.DERPMap, report *netcheck.Report) error {
l1, ok1 := report.RegionLatency[rids[i]] l1, ok1 := report.RegionLatency[rids[i]]
l2, ok2 := report.RegionLatency[rids[j]] l2, ok2 := report.RegionLatency[rids[j]]
if ok1 != ok2 { if ok1 != ok2 {
if !ok1 { return ok1 // defined things sort first
return false
}
return true
} }
if !ok1 { if !ok1 {
return rids[i] < rids[j] return rids[i] < rids[j]