mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Fix bool parse warning in apimachinery
This commit is contained in:
parent
7f626cf836
commit
1900810f97
@ -82,6 +82,9 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func parseBool(key string) bool {
|
func parseBool(key string) bool {
|
||||||
|
if len(key) == 0 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
value, err := strconv.ParseBool(key)
|
value, err := strconv.ParseBool(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utilruntime.HandleError(fmt.Errorf("Couldn't parse '%s' as bool for unstructured mismatch detection", key))
|
utilruntime.HandleError(fmt.Errorf("Couldn't parse '%s' as bool for unstructured mismatch detection", key))
|
||||||
|
Loading…
Reference in New Issue
Block a user