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 self.config_file
.containers .containers
.as_ref() .as_ref()
.unwrap() .and_then(|containers| containers.runtime)
.runtime
.unwrap_or(ContainerRuntime::Docker) // defaults to a popular choice .unwrap_or(ContainerRuntime::Docker) // defaults to a popular choice
} }