Optimizing some format problems (#82983)

* modify the error string

* omit redundant type bool from variable declarations
This commit is contained in:
Hongwei Yu
2019-11-02 01:21:25 +08:00
committed by Kubernetes Prow Robot
parent 58323cbf4e
commit 65f2280a38
2 changed files with 6 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ func validateHost(runtime string) error {
// Check build support.
if isDisabledBuild {
return errors.New("Binary not compiled for linux")
return errors.New("binary not compiled for linux")
}
// Check kernel support.
@@ -112,7 +112,7 @@ func validateHost(runtime string) error {
// Check runtime support. Currently only Docker is supported.
if runtime != kubetypes.DockerContainerRuntime && runtime != kubetypes.RemoteContainerRuntime {
return fmt.Errorf("AppArmor is only enabled for 'docker' and 'remote' runtimes. Found: %q.", runtime)
return fmt.Errorf("AppArmor is only enabled for 'docker' and 'remote' runtimes. Found: %q", runtime)
}
return nil