From b4d51e9b4d54344665c94e9e15f70ef9165676bf Mon Sep 17 00:00:00 2001 From: Medya Ghazizadeh Date: Wed, 24 Sep 2025 14:21:14 -0700 Subject: [PATCH] shorter if statement --- pkg/minikube/download/preload.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/minikube/download/preload.go b/pkg/minikube/download/preload.go index c4a54ec42f..35aa7e18dd 100644 --- a/pkg/minikube/download/preload.go +++ b/pkg/minikube/download/preload.go @@ -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 } }