mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Remove unnecessary string()
This commit is contained in:
parent
990695c839
commit
1a755d13a6
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user