Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tvcsantos committed Jun 25, 2023
1 parent fbb605e commit 14725e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions git-cliff/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ fn process_repository<'a>(
}
}

if release_index > 1 {
previous_release.previous = None;
releases[release_index].previous = Some(Box::new(previous_release));
}
if release_index > 1 {
previous_release.previous = None;
releases[release_index].previous = Some(Box::new(previous_release));
}

// Add custom commit messages to the latest release.
if let Some(custom_commits) = &args.with_commit {
Expand All @@ -214,7 +214,7 @@ fn process_repository<'a>(

// Set the previous release if needed.
if args.latest || args.unreleased {
let sub = if args.latest { 2 } else { 1 };
let sub = if args.latest { 2 } else { 1 };
if let Some((commit_id, version)) =
tags.len().checked_sub(sub).and_then(|v| tags.get_index(v))
{
Expand Down

0 comments on commit 14725e5

Please sign in to comment.