Skip to content

Commit

Permalink
chore: rename output_path to config_path
Browse files Browse the repository at this point in the history
  • Loading branch information
xsadia committed Dec 26, 2024
1 parent 83078cf commit c5be59d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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(());
}

Expand Down

0 comments on commit c5be59d

Please sign in to comment.