Skip to content

Commit d537288

Browse files
jclapisltitanb
andauthored
Update crates/cli/src/docker_init.rs
Co-authored-by: ltitanb <163874448+ltitanb@users.noreply.github.com>
1 parent fc872ac commit d537288

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

crates/cli/src/docker_init.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ pub async fn handle_docker_init(config_path: PathBuf, output_dir: PathBuf) -> Re
7373
let mut targets = Vec::new();
7474

7575
// address for signer API communication
76-
let signer_port = if let Some(signer_config) = &cb_config.signer {
77-
signer_config.port
78-
} else {
79-
DEFAULT_SIGNER_PORT
80-
};
76+
let signer_port = cb_config.signer.as_ref().map(|s| s.port).unwrap_or(DEFAULT_SIGNER_PORT);
8177
let signer_server =
8278
if let Some(SignerConfig { inner: SignerType::Remote { url }, .. }) = &cb_config.signer {
8379
url.to_string()

0 commit comments

Comments
 (0)