fix: a panic introduced by improper unwrap() (#899)
fix: an panic introduced by improper unwrap()
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user