Skip to content

Commit

Permalink
refactor(clippy): apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Dec 9, 2024
1 parent 8704518 commit f4ef2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cliff-core/src/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ impl Repository {
.iter()
.flatten()
.filter(|tag_name| {
pattern.as_ref().map_or(true, |pat| pat.is_match(tag_name))
pattern.as_ref().is_none_or(|pat| pat.is_match(tag_name))
})
.map(String::from)
{
Expand Down

0 comments on commit f4ef2c7

Please sign in to comment.