Fix golint verify errors.

**What type of PR is this?**
/kind cleanup

**What this PR does / why we need it**:
$ hack/verify-golint.sh
Errors from golint:
pkg/cloudprovider/providers/aws/aws_fakes.go:357:9: if block ends with a return statement, so drop this else and outdent its block
pkg/volume/util/util.go:204:9: if block ends with a return statement, so drop this else and outdent its block

**Which issue(s) this PR fixes** *(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged)*:

**Special notes for your reviewer**:

**Release note**:
```
NONE
```
pull/564/head
chendt.fnst 2018-11-20 17:43:58 +08:00
parent 50e02fd0cc
commit 80de428f49
2 changed files with 4 additions and 4 deletions

View File

@ -353,10 +353,10 @@ func (m *FakeMetadata) GetMetadata(key string) (string, error) {
}
}
return "", nil
} else {
return "", nil
}
return "", nil
}
// FakeELB is a fake ELB client used for testing

View File

@ -201,9 +201,9 @@ func PathExists(path string) (bool, error) {
return false, nil
} else if IsCorruptedMnt(err) {
return true, err
} else {
return false, err
}
return false, err
}
// IsCorruptedMnt return true if err is about corrupted mount point