clippy i hate you so much

This commit is contained in:
Pere Diaz Bou
2025-07-23 12:03:25 +02:00
parent b07e57d9d1
commit ce598b772e

View File

@@ -760,10 +760,8 @@ pub fn handle_program_error(
if let Err(e) = pager.end_tx(false, schema_did_change, connection, false) {
tracing::error!("end_tx failed: {e}");
}
} else {
if let Err(e) = pager.end_read_tx() {
tracing::error!("end_read_tx failed: {e}");
}
} else if let Err(e) = pager.end_read_tx() {
tracing::error!("end_read_tx failed: {e}");
}
connection.transaction_state.replace(TransactionState::None);
}