mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
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:
parent
5205d300a1
commit
b98dedeb7d
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user