fix: mark deliberately unawaited promises with void (Sonar S9383)

This commit is contained in:
Maurice
2026-10-01 14:19:52 +02:00
parent f9baf3395e
commit db4337287b
96 changed files with 160 additions and 160 deletions
+2 -2
View File
@@ -265,8 +265,8 @@ export const tripSyncManager = {
// Cache global user data (tags + categories) — fire-and-forget, so the
// gate has to be re-read when the response lands, not when it was issued:
// a logout in between would put these rows in the anonymous database.
tagsApi.list().then(d => { if (isAuthed()) upsertTags(d.tags) }).catch(() => {})
categoriesApi.list().then(d => { if (isAuthed()) upsertCategories(d.categories) }).catch(() => {})
tagsApi.list().then(d => { if (isAuthed()) void upsertTags(d.tags) }).catch(() => {})
categoriesApi.list().then(d => { if (isAuthed()) void upsertCategories(d.categories) }).catch(() => {})
// Cache file blobs + map tiles in background (don't block syncAll)
const cacheTiles = getOfflinePrefs().cacheTiles