From 6d89c1da6e86f034e20fd77c3de0bf948af123e9 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 5 Mar 2024 20:49:30 -0500 Subject: [PATCH] Format. --- src/ssb.db.c | 3 ++- src/ssb.import.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ssb.db.c b/src/ssb.db.c index 9dd8ee59..4fc52ba2 100644 --- a/src/ssb.db.c +++ b/src/ssb.db.c @@ -182,7 +182,8 @@ void tf_ssb_db_init(tf_ssb_t* ssb) tf_printf("Done.\n"); } - _tf_ssb_db_exec(db, "CREATE TRIGGER IF NOT EXISTS messages_ai AFTER INSERT ON messages BEGIN INSERT INTO messages_fts(rowid, content) VALUES (new.rowid, json(new.content)); END"); + _tf_ssb_db_exec( + db, "CREATE TRIGGER IF NOT EXISTS messages_ai AFTER INSERT ON messages BEGIN INSERT INTO messages_fts(rowid, content) VALUES (new.rowid, json(new.content)); END"); _tf_ssb_db_exec(db, "CREATE TRIGGER IF NOT EXISTS messages_ad AFTER DELETE ON messages BEGIN INSERT INTO messages_fts(messages_fts, rowid, content) VALUES ('delete', old.rowid, " "old.content); END"); diff --git a/src/ssb.import.c b/src/ssb.import.c index 19dd3be6..f6a9dd17 100644 --- a/src/ssb.import.c +++ b/src/ssb.import.c @@ -130,7 +130,7 @@ static void _tf_ssb_import_recursive_add_files(tf_ssb_t* ssb, uv_loop_t* loop, J { if (ent.type == UV_DIRENT_FILE #if defined(__HAIKU__) - || ent.type == UV_DIRENT_UNKNOWN + || ent.type == UV_DIRENT_UNKNOWN #endif ) {