mirror of https://github.com/k3s-io/k3s
iSCSi plugin: Remove redundant nil check
parent
88add574fd
commit
285ac8935f
|
@ -114,7 +114,7 @@ func waitForPathToExistInternal(devicePath *string, maxRetries int, deviceTransp
|
|||
if err == nil {
|
||||
return true
|
||||
}
|
||||
if err != nil && !os.IsNotExist(err) {
|
||||
if !os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
if i == maxRetries-1 {
|
||||
|
|
Loading…
Reference in New Issue