From 771e9541c71d14e03311103769c968c3da102526 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 17 Aug 2020 13:01:20 -0700 Subject: [PATCH] cmd/tailscale/cli: appease staticcheck --- cmd/tailscale/cli/netcheck.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/tailscale/cli/netcheck.go b/cmd/tailscale/cli/netcheck.go index ef4b8cb57..1ad30dd02 100644 --- a/cmd/tailscale/cli/netcheck.go +++ b/cmd/tailscale/cli/netcheck.go @@ -135,10 +135,7 @@ func printReport(dm *tailcfg.DERPMap, report *netcheck.Report) error { l1, ok1 := report.RegionLatency[rids[i]] l2, ok2 := report.RegionLatency[rids[j]] if ok1 != ok2 { - if !ok1 { - return false - } - return true + return ok1 // defined things sort first } if !ok1 { return rids[i] < rids[j]