Commit ad077c4c authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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 ```
parents 33fc75e2 285ac893
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment