Commit 80de428f authored by chendt.fnst's avatar chendt.fnst

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 ```
parent 50e02fd0
......@@ -354,9 +354,9 @@ func (m *FakeMetadata) GetMetadata(key string) (string, error) {
}
return "", nil
} else {
return "", nil
}
return "", nil
}
// FakeELB is a fake ELB client used for testing
......
......@@ -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
......
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