From c5be59d25a443bc29b364d3775f09ab981d41643 Mon Sep 17 00:00:00 2001 From: xsadia Date: Wed, 25 Dec 2024 21:15:36 -0300 Subject: [PATCH] chore: rename output_path to config_path --- git-cliff/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git-cliff/src/lib.rs b/git-cliff/src/lib.rs index c76b97ed3b..415b94cf01 100644 --- a/git-cliff/src/lib.rs +++ b/git-cliff/src/lib.rs @@ -380,7 +380,7 @@ pub fn run(mut args: Opt) -> Result<()> { None => EmbeddedConfig::get_config()?, }; - let output_path = if args.config == PathBuf::from(DEFAULT_CONFIG) { + let config_path = if args.config == PathBuf::from(DEFAULT_CONFIG) { PathBuf::from(DEFAULT_CONFIG) } else { args.config.clone() @@ -389,9 +389,9 @@ pub fn run(mut args: Opt) -> Result<()> { info!( "Saving the configuration file{} to {:?}", init_config.map(|v| format!(" ({v})")).unwrap_or_default(), - output_path + config_path ); - fs::write(output_path, contents)?; + fs::write(config_path, contents)?; return Ok(()); }