From f19f4e40f9b878d98e09fb649a078b1bf111c192 Mon Sep 17 00:00:00 2001 From: drfish Date: Mon, 20 Jan 2020 13:25:34 +0800 Subject: [PATCH] Fix static check errors in pkg/util/netsh --- hack/.staticcheck_failures | 1 - pkg/util/netsh/netsh.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index 02734dfb421..84dc2b0a146 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -20,7 +20,6 @@ pkg/registry/core/service/ipallocator pkg/registry/core/service/portallocator pkg/registry/core/service/storage pkg/util/coverage -pkg/util/netsh pkg/volume pkg/volume/awsebs pkg/volume/azure_dd diff --git a/pkg/util/netsh/netsh.go b/pkg/util/netsh/netsh.go index a9f1731b45d..580e1482f52 100644 --- a/pkg/util/netsh/netsh.go +++ b/pkg/util/netsh/netsh.go @@ -21,7 +21,6 @@ import ( "net" "os" "strings" - "sync" "time" "k8s.io/klog" @@ -54,7 +53,6 @@ const ( // runner implements Interface in terms of exec("netsh"). type runner struct { - mu sync.Mutex exec utilexec.Interface }