We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a6c9fa commit 38a0bcdCopy full SHA for 38a0bcd
src/info/git/mod.rs
@@ -292,9 +292,7 @@ fn is_bot_commit(
292
}
293
294
fn is_bot(author_name: &BString, bot_regex_pattern: Option<&MyRegex>) -> bool {
295
- bot_regex_pattern.map_or(false, |regex| {
296
- regex.0.is_match(author_name.to_str_lossy().as_ref())
297
- })
+ bot_regex_pattern.is_some_and(|regex| regex.0.is_match(author_name.to_str_lossy().as_ref()))
298
299
300
#[cfg(test)]
0 commit comments