nostrdb: refactor: a few small formatting changes

No functional changes, just formatting cleanups

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-01-13 18:10:17 -08:00
committed by Daniel D’Aquino
parent 2d02766461
commit 04d4ff4e99

View File

@@ -3047,8 +3047,7 @@ static int query_is_full(struct ndb_query_results *results, int limit)
static int ndb_query_plan_execute_ids(struct ndb_txn *txn, static int ndb_query_plan_execute_ids(struct ndb_txn *txn,
struct ndb_filter *filter, struct ndb_filter *filter,
struct ndb_query_results *results, struct ndb_query_results *results,
int limit int limit)
)
{ {
MDB_cursor *cur; MDB_cursor *cur;
MDB_dbi db; MDB_dbi db;
@@ -3908,8 +3907,9 @@ retry:
return 0; return 0;
} }
if (last_result) { // if the note id doesn't match the last result, then we stop trying
if (last_result->key.note_id != result->key.note_id) // each search word
if (last_result && last_result->key.note_id != result->key.note_id) {
return 0; return 0;
} }