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
This commit is contained in:
Ed Bartosh 2018-05-24 18:53:15 +03:00
parent 5205d300a1
commit b98dedeb7d

View File

@ -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
}
}