mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
fix: mark deliberately unawaited promises with void (Sonar S9383)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user