shorter if statement

pull/21605/head
Medya Ghazizadeh 2025-09-24 14:21:14 -07:00
parent ff6b98be2c
commit b4d51e9b4d
1 changed files with 1 additions and 2 deletions

View File

@ -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
}
}