iSCSi plugin: Remove redundant nil check

pull/6/head
Mitsuhiro Tanino 2017-06-15 18:00:29 -04:00
parent 88add574fd
commit 285ac8935f
1 changed files with 1 additions and 1 deletions

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 {