From 983c5243ba02d90a736347f08b686ab43bf964fb Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Tue, 3 Sep 2024 15:26:41 +0800 Subject: [PATCH] fix: a panic introduced by improper unwrap() (#899) fix: an panic introduced by improper unwrap() --- src/config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 0f65a02e..c529013a 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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 }