diff --git a/core/vdbe/mod.rs b/core/vdbe/mod.rs index 64a5f5c06..0dca187d3 100644 --- a/core/vdbe/mod.rs +++ b/core/vdbe/mod.rs @@ -1062,8 +1062,7 @@ impl Program { let rowid = { let mut index_cursor = state.get_cursor(index_cursor_id); let index_cursor = index_cursor.as_btree_mut(); - let rowid = index_cursor.rowid()?; - rowid + index_cursor.rowid()? }; let mut table_cursor = state.get_cursor(table_cursor_id); let table_cursor = table_cursor.as_btree_mut(); @@ -1804,8 +1803,7 @@ impl Program { unreachable!(); }; - if (matches!(func, AggFunc::Count) && matches!(col, OwnedValue::Null)) - == false + if !(matches!(func, AggFunc::Count) && matches!(col, OwnedValue::Null)) { *count += 1; };