From 963b927d5bdc0e91e9a581a81860a6dc189ac368 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 21 Sep 2020 15:01:30 -0700 Subject: [PATCH] net/tshttpproxy: appease staticcheck --- net/tshttpproxy/tshttpproxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/tshttpproxy/tshttpproxy.go b/net/tshttpproxy/tshttpproxy.go index 6655fe2f6..56d4d57de 100644 --- a/net/tshttpproxy/tshttpproxy.go +++ b/net/tshttpproxy/tshttpproxy.go @@ -34,6 +34,8 @@ func setNoProxyUntil(d time.Duration) { noProxyUntil = time.Now().Add(d) } +var _ = setNoProxyUntil // quiet staticcheck; Windows uses the above, more might later + // sysProxyFromEnv, if non-nil, specifies a platform-specific ProxyFromEnvironment // func to use if http.ProxyFromEnvironment doesn't return a proxy. // For example, WPAD PAC files on Windows.