ceph: handle golangci-lint linter gosimple

this commit handles all the errors  check for
golangci-lint linter gosimple.

Signed-off-by: subhamkrai <subhamkumarrai03@gmail.com>
This commit is contained in:
subhamkrai committed 2020-09-17 15:10:27 +05:30
1 parent 513567f309
commit 25c116a4bd
42 files changed
+100 -159

No files matched your search

+1 -5
View File
@@ -521,11 +521,7 @@ func isCMTConfigOverride(obj runtime.Object) bool {
}
objectName := cm.GetName()
if objectName == k8sutil.ConfigOverrideName {
return true
}
return false
return objectName == k8sutil.ConfigOverrideName
}
func isCMToIgnoreOnDelete(obj runtime.Object) bool {