mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-05 00:51:02 +00:00
simplify returning boolean expression in staging/src/k8s.io/client-go/tools
Signed-off-by: 刁浩 10284789 <diao.hao@zte.com.cn> Kubernetes-commit: 9173414da6d1c70436b256d6068e3737a7434f6a
This commit is contained in:
committed by
Kubernetes Publisher
parent
614c59d0d6
commit
5b0c7191ef
@@ -135,11 +135,7 @@ func (o *PathOptions) GetDefaultFilename() string {
|
||||
}
|
||||
|
||||
func (o *PathOptions) IsExplicitFile() bool {
|
||||
if len(o.LoadingRules.ExplicitPath) > 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return len(o.LoadingRules.ExplicitPath) > 0
|
||||
}
|
||||
|
||||
func (o *PathOptions) GetExplicitFile() string {
|
||||
|
Reference in New Issue
Block a user