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) {
|
||||
if cRuntimes, ok := preloadStates[k8sVersion]; ok {
|
||||
state, ok := cRuntimes[containerRuntime]
|
||||
if ok {
|
||||
if state, ok := cRuntimes[containerRuntime]; ok {
|
||||
return state, true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue