From b98dedeb7d91f1131ca1de4daa611f7912e62e2f Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 24 May 2018 18:53:15 +0300 Subject: [PATCH] fix make vet Fixed make vet failure: internal/deviceplugin/deviceplugin_test.go:190: declaration of "err" shadows declaration at internal/deviceplugin/deviceplugin_test.go:150 Makefile:14: recipe for target 'vet' failed make: *** [vet] Error 2 --- internal/deviceplugin/deviceplugin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/deviceplugin/deviceplugin_test.go b/internal/deviceplugin/deviceplugin_test.go index 5ea32a88..49c895ab 100644 --- a/internal/deviceplugin/deviceplugin_test.go +++ b/internal/deviceplugin/deviceplugin_test.go @@ -187,7 +187,7 @@ func TestSetupAndServe(t *testing.T) { kubelet.Unlock() pluginSocket = path.Join(devicePluginPath, pEndpoint) if pEndpoint != "" { - if _, err := os.Stat(pluginSocket); err == nil { + if _, err = os.Stat(pluginSocket); err == nil { break } }