Skip to content

Commit 30216b6

Browse files
committed
Remove unnecessary Ok(()) returns
1 parent 59291eb commit 30216b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/duckdb/src/transaction.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ impl Transaction<'_> {
9494

9595
#[inline]
9696
fn commit_(&mut self) -> Result<()> {
97-
self.conn.execute_batch("COMMIT")?;
98-
Ok(())
97+
self.conn.execute_batch("COMMIT")
9998
}
10099

101100
/// A convenience method which consumes and rolls back a transaction.
@@ -106,8 +105,7 @@ impl Transaction<'_> {
106105

107106
#[inline]
108107
fn rollback_(&mut self) -> Result<()> {
109-
self.conn.execute_batch("ROLLBACK")?;
110-
Ok(())
108+
self.conn.execute_batch("ROLLBACK")
111109
}
112110

113111
/// Consumes the transaction, committing or rolling back according to the

0 commit comments

Comments
 (0)