Skip to content

Commit

Permalink
fix: a panic introduced by improper unwrap() (#899)
Browse files Browse the repository at this point in the history
fix: an panic introduced by improper unwrap()
  • Loading branch information
SteveLauC authored Sep 3, 2024
1 parent 1958fe1 commit 983c524
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 983c524

Please sign in to comment.