mirror of https://github.com/k3s-io/k3s
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
parent
50e02fd0cc
commit
80de428f49
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue