From 53eaf56a63bf49bb33802702e48758cdd7f8345a Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Tue, 9 Sep 2025 17:26:11 +0300 Subject: [PATCH] let's apply clippy's suggestion that makes the code less readable --- tests/integration/fuzz/mod.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/integration/fuzz/mod.rs b/tests/integration/fuzz/mod.rs index 1e4818c5e..59134a75b 100644 --- a/tests/integration/fuzz/mod.rs +++ b/tests/integration/fuzz/mod.rs @@ -599,14 +599,10 @@ mod tests { } else { format!("UPDATE t SET c{affected_col} = {new_y} WHERE c{predicate_col} {comparison} {predicate_value}") } + } else if omit_where { + "DELETE FROM t".to_string() } else { - if omit_where { - "DELETE FROM t".to_string() - } else { - format!( - "DELETE FROM t WHERE c{predicate_col} {comparison} {predicate_value}" - ) - } + format!("DELETE FROM t WHERE c{predicate_col} {comparison} {predicate_value}") }; dml_statements.push(query.clone());