mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 05:07:33 +00:00
all: fix new lint warnings from bumping staticcheck
In prep for updating to new staticcheck required for Go 1.23. Updates #12912 Change-Id: If77892a023b79c6fa798f936fc80428fd4ce0673 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
4637ac732e
commit
0ff474ff37
@@ -1731,6 +1731,7 @@ func envValFromList(env []string, wantKey string) (v string) {
|
||||
// envEq reports whether environment variable a == b for the current
|
||||
// operating system.
|
||||
func envEq(a, b string) bool {
|
||||
//lint:ignore SA4032 in case this func moves elsewhere, permit the GOOS check
|
||||
if runtime.GOOS == "windows" {
|
||||
return strings.EqualFold(a, b)
|
||||
}
|
||||
|
Reference in New Issue
Block a user