mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Remove useless bash conditional
bash just returns the last return code, why are we testing and then doing the same?
This commit is contained in:
parent
86e347ffc3
commit
d28660ae49
@ -174,9 +174,6 @@ __kubectl_get_resource()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
__kubectl_parse_get "${nouns[${#nouns[@]} -1]}"
|
__kubectl_parse_get "${nouns[${#nouns[@]} -1]}"
|
||||||
if [[ $? -eq 0 ]]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1 is the name of the pod we want to get the list of containers inside
|
# $1 is the name of the pod we want to get the list of containers inside
|
||||||
|
@ -45,9 +45,6 @@ __kubectl_get_resource()
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
__kubectl_parse_get "${nouns[${#nouns[@]} -1]}"
|
__kubectl_parse_get "${nouns[${#nouns[@]} -1]}"
|
||||||
if [[ $? -eq 0 ]]; then
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1 is the name of the pod we want to get the list of containers inside
|
# $1 is the name of the pod we want to get the list of containers inside
|
||||||
|
Loading…
Reference in New Issue
Block a user