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
Kubernetes Submit Queue 2017-06-29 14:05:24 -07:00 committed by GitHub
commit ad077c4ccb
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 {