let's apply clippy's suggestion that makes the code less readable

This commit is contained in:
Jussi Saurio
2025-09-09 17:26:11 +03:00
parent 36ec654631
commit 53eaf56a63

View File

@@ -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());