Skip to content

Commit 6d2d1c8

Browse files
committed
fix up return
1 parent 398b6a9 commit 6d2d1c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/rs/core/src/local_writes/after_update.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ fn after_update__mark_old_pk_row_deleted(
162162
.and_then(|_| mark_locally_deleted_stmt.bind_text(4, ts, sqlite::Destructor::STATIC))
163163
// .and_then(|_| mark_locally_deleted_stmt.bind_int64(4, db_version))
164164
.or_else(|_| Err("failed binding to mark_locally_deleted_stmt"))?;
165-
super::step_trigger_stmt(mark_locally_deleted_stmt)?;
165+
super::step_trigger_stmt(mark_locally_deleted_stmt)
166166
}
167167

168168
#[allow(non_snake_case)]
@@ -190,7 +190,7 @@ fn after_update__move_non_pk_col(
190190
.and_then(|_| move_non_pk_col_stmt.bind_int64(5, old_key))
191191
.and_then(|_| move_non_pk_col_stmt.bind_text(6, col_name, sqlite::Destructor::STATIC))
192192
.or_else(|_| Err("failed binding to move_non_pk_col_stmt"))?;
193-
super::step_trigger_stmt(move_non_pk_col_stmt)?;
193+
super::step_trigger_stmt(move_non_pk_col_stmt)
194194
}
195195

196196
// TODO: in the future we can keep sentinel information in the lookaside
@@ -214,7 +214,7 @@ fn after_update__move_non_sentinels(
214214
// where they have the old key
215215
.and_then(|_| move_non_sentinels_stmt.bind_int64(2, old_key))
216216
.or_else(|_| Err("failed to bind pks to move_non_sentinels_stmt"))?;
217-
super::step_trigger_stmt(move_non_sentinels_stmt)?;
217+
super::step_trigger_stmt(move_non_sentinels_stmt)
218218
}
219219

220220
#[cfg(test)]

core/rs/core/src/local_writes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fn mark_new_pk_row_created(
9898
.and_then(|_| mark_locally_created_stmt.bind_int(3, seq))
9999
.and_then(|_| mark_locally_created_stmt.bind_text(4, ts, sqlite::Destructor::STATIC))
100100
.map_err(|_| "failed binding to mark_locally_created_stmt")?;
101-
step_trigger_stmt(mark_locally_created_stmt)?;
101+
step_trigger_stmt(mark_locally_created_stmt)
102102
}
103103

104104
fn bump_seq(ext_data: *mut crsql_ExtData) -> c_int {

0 commit comments

Comments
 (0)