Skip to content

Commit

Permalink
bugfix(teller file name): re use the variable declared for the defaul…
Browse files Browse the repository at this point in the history
…t to prevent drift between teller new and file lookup
  • Loading branch information
stvnksslr committed May 14, 2024
1 parent 2cfe6b1 commit c7d8fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teller-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ pub struct NewArgs {
}

async fn load_teller(config: Option<String>) -> eyre::Result<Teller> {
let config_arg = config.unwrap_or_else(|| "teller.yml".to_string());
let config_arg = config.unwrap_or_else(|| DEFAULT_FILE_PATH.to_string());
let config_path = Path::new(&config_arg);
let teller = Teller::from_yaml(config_path).await?;
Ok(teller)
Expand Down

0 comments on commit c7d8fb5

Please sign in to comment.