Skip to content

Commit 59dbe39

Browse files
committed
fix: clippy warnings for suppress command
1 parent 6cd2138 commit 59dbe39

File tree

9 files changed

+358
-330
lines changed

9 files changed

+358
-330
lines changed

crates/cli/src/commands/scan.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,10 @@ fn apply_suppressions(
633633
.map(|c| args.path.join(&c.database))
634634
.unwrap_or_else(|| args.path.join(".rma/suppressions.db"));
635635

636-
if db_path.exists() {
637-
if let Ok(store) = rma_common::suppression::SuppressionStore::open(&db_path) {
638-
engine = engine.with_store(store);
639-
}
636+
if db_path.exists()
637+
&& let Ok(store) = rma_common::suppression::SuppressionStore::open(&db_path)
638+
{
639+
engine = engine.with_store(store);
640640
}
641641
}
642642

0 commit comments

Comments
 (0)