Skip to content

Commit

Permalink
If no interface files given, default to empty vector
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Nov 21, 2024
1 parent bdc0df8 commit 8d070c9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions crates/test-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,16 +326,18 @@ pub async fn run_command(

let config_interface = match config_interface_file {
Some(file_name) => fs::read(file_name)?,
None => fs::read(
config_interface_file_option.expect("No config interface file passed"),
)?,
None => match config_interface_file_option {
Some(config_interface_file) => fs::read(config_interface_file)?,
None => Vec::new(),
},
};

let aux_data_interface = match aux_data_interface_file {
Some(file_name) => fs::read(file_name)?,
None => fs::read(
aux_data_interface_file_option.expect("No aux data interface file passed"),
)?,
None => match aux_data_interface_file_option {
Some(aux_data_interface_file) => fs::read(aux_data_interface_file)?,
None => Vec::new(),
},
};

let program_version_number = match program_version_number_option {
Expand Down

0 comments on commit 8d070c9

Please sign in to comment.