From bfc4a7a1c5476e20cb89b11d07fed2cf31605f01 Mon Sep 17 00:00:00 2001 From: Aresforchina <18845641183@163.com> Date: Thu, 2 Jan 2020 18:01:29 +0800 Subject: [PATCH] fix staticcheck of pkg/util/ebtables --- hack/.staticcheck_failures | 1 - pkg/util/ebtables/ebtables.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index d1bb49eedae..69fc3b8bd39 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -25,7 +25,6 @@ pkg/registry/core/service/ipallocator pkg/registry/core/service/portallocator pkg/registry/core/service/storage pkg/util/coverage -pkg/util/ebtables pkg/util/ipconfig pkg/util/iptables pkg/util/ipvs/testing diff --git a/pkg/util/ebtables/ebtables.go b/pkg/util/ebtables/ebtables.go index ae84b5d0a16..4e88d19e62c 100644 --- a/pkg/util/ebtables/ebtables.go +++ b/pkg/util/ebtables/ebtables.go @@ -20,7 +20,6 @@ import ( "fmt" "regexp" "strings" - "sync" utilexec "k8s.io/utils/exec" ) @@ -86,7 +85,6 @@ type Interface interface { // runner implements Interface in terms of exec("ebtables"). type runner struct { - mu sync.Mutex exec utilexec.Interface }