Remove unnecessary string()

This commit is contained in:
Ted Yu 2019-05-30 19:48:24 -07:00 committed by Ted Yu
parent 990695c839
commit 1a755d13a6
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");
you may not use this file except in compliance with the License.
@ -33,7 +33,7 @@ func NewPreferredPolicy() Policy {
}
func (p *preferredPolicy) Name() string {
return string(PolicyPreferred)
return PolicyPreferred
}
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");
you may not use this file except in compliance with the License.
@ -33,7 +33,7 @@ func NewStrictPolicy() Policy {
}
func (p *strictPolicy) Name() string {
return string(PolicyStrict)
return PolicyStrict
}
func (p *strictPolicy) CanAdmitPodResult(admit bool) lifecycle.PodAdmitResult {