Fixing lint warnings
This commit is contained in:
@@ -566,7 +566,7 @@ pub(crate) fn optimize<'a>(statements: Vec<Stmt>, engine: &Engine<'a>, scope: &S
|
||||
|
||||
// Add back the last statement unless it is a lone No-op
|
||||
if let Some(stmt) = last_stmt {
|
||||
if result.len() > 0 || !matches!(stmt, Stmt::Noop(_)) {
|
||||
if !result.is_empty() || !matches!(stmt, Stmt::Noop(_)) {
|
||||
result.push(stmt);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user