Skip to content

Commit

Permalink
refactor(cli): refactor macro
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Nov 2, 2023
1 parent 844d8d7 commit 9917ebd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dar2oar_cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ pub async fn run_cli(args: Args) -> anyhow::Result<()> {
macro_rules! read_table {
($path:expr) => {
match $path {
Some(table_path) => {
let mapping = read_mapping_table(table_path).await?;
Some(mapping)
}
Some(table_path) => read_mapping_table(table_path).await.ok(),
None => None,
}
};
Expand Down

0 comments on commit 9917ebd

Please sign in to comment.