mirror of https://github.com/k3s-io/k3s
Merge pull request #47619 from mtanino/iscsi-remove-redundant-nil-check
Automatic merge from submit-queue (batch tested with PRs 47619, 47951, 46260, 48277) iSCSi plugin: Remove redundant nil check **What this PR does / why we need it**: This patch is for cleanup of redundant nil check in iSCSI plugin. This was mentioned at the code review on origin github thread. https://github.com/openshift/origin/pull/14565 **Which issue this PR fixes** **Special notes for your reviewer**: **Release note**: ``` NONE ```pull/6/head
commit
ad077c4ccb
|
@ -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