mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-02 16:04:20 +01:00
let's apply clippy's suggestion that makes the code less readable
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user