Skip to content

Commit f1f039d

Browse files
committed
Add note on is_err().
1 parent 8107e42 commit f1f039d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/core/src/sync_local.rs

+2
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ SELECT
146146
if tables.contains(&table_name) {
147147
let quoted = quote_internal_name(type_name, false);
148148

149+
// is_err() is essentially a NULL check here
149150
if data.is_err() {
150151
// DELETE
151152
let delete_statement = db
@@ -163,6 +164,7 @@ SELECT
163164
insert_statement.exec()?;
164165
}
165166
} else {
167+
// is_err() is essentially a NULL check here
166168
if data.is_err() {
167169
// DELETE
168170
// language=SQLite

0 commit comments

Comments
 (0)