iSCSi plugin: Remove redundant nil check

This commit is contained in:
Mitsuhiro Tanino 2017-06-15 18:00:29 -04:00
parent 88add574fd
commit 285ac8935f

View File

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