shorter if statement
parent
ff6b98be2c
commit
b4d51e9b4d
|
|
@ -137,8 +137,7 @@ func setPreloadState(k8sVersion, containerRuntime string, state preloadState) {
|
||||||
|
|
||||||
func getPreloadState(k8sVersion, containerRuntime string) (preloadState, bool) {
|
func getPreloadState(k8sVersion, containerRuntime string) (preloadState, bool) {
|
||||||
if cRuntimes, ok := preloadStates[k8sVersion]; ok {
|
if cRuntimes, ok := preloadStates[k8sVersion]; ok {
|
||||||
state, ok := cRuntimes[containerRuntime]
|
if state, ok := cRuntimes[containerRuntime]; ok {
|
||||||
if ok {
|
|
||||||
return state, true
|
return state, true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue