Skip to content

Commit ac4d7df

Browse files
committed
avoid clippy::partialeq_to_none
1 parent 284ba8c commit ac4d7df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/handlers/merge_conflicts.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ async fn scan_unknowns(
244244
);
245245
for unknown in unknowns {
246246
let pr = repo.get_pr(gh, unknown.number).await?;
247-
// Ignore None, we don't want to repeatedly hammer GitHub asking for the answer.
248-
if pr.mergeable == Some(false) {
249-
maybe_add_comment(gh, &mut db, config, &pr, possibly.as_deref()).await?;
250-
} else if pr.mergeable == None {
251-
log::info!("unable to determine mergeable after delay for {unknown:?}");
247+
match pr.mergeable {
248+
Some(true) => {}
249+
Some(false) => maybe_add_comment(gh, &mut db, config, &pr, possibly.as_deref()).await?,
250+
// Ignore None, we don't want to repeatedly hammer GitHub asking for the answer.
251+
None => log::info!("unable to determine mergeable after delay for {unknown:?}"),
252252
}
253253
}
254254
Ok(())

0 commit comments

Comments
 (0)