fix: a panic introduced by improper unwrap() (#899)

fix: an panic introduced by improper unwrap()
This commit is contained in:
SteveLauC
2024-09-03 15:26:41 +08:00
committed by GitHub
parent 1958fe1e5b
commit 983c5243ba

View File

@@ -907,8 +907,7 @@ impl Config {
self.config_file
.containers
.as_ref()
.unwrap()
.runtime
.and_then(|containers| containers.runtime)
.unwrap_or(ContainerRuntime::Docker) // defaults to a popular choice
}