Merge pull request #78558 from tedyu/policy-str

Remove unnecessary string()
This commit is contained in:
Kubernetes Prow Robot 2019-07-11 13:13:06 -07:00 committed by GitHub
commit d4d8daea73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2015 The Kubernetes Authors. Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -33,7 +33,7 @@ func NewPreferredPolicy() Policy {
} }
func (p *preferredPolicy) Name() string { func (p *preferredPolicy) Name() string {
return string(PolicyPreferred) return PolicyPreferred
} }
func (p *preferredPolicy) CanAdmitPodResult(admit bool) lifecycle.PodAdmitResult { func (p *preferredPolicy) CanAdmitPodResult(admit bool) lifecycle.PodAdmitResult {

View File

@ -1,5 +1,5 @@
/* /*
Copyright 2015 The Kubernetes Authors. Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -33,7 +33,7 @@ func NewStrictPolicy() Policy {
} }
func (p *strictPolicy) Name() string { func (p *strictPolicy) Name() string {
return string(PolicyStrict) return PolicyStrict
} }
func (p *strictPolicy) CanAdmitPodResult(admit bool) lifecycle.PodAdmitResult { func (p *strictPolicy) CanAdmitPodResult(admit bool) lifecycle.PodAdmitResult {