From cc722c25990abc1e3ea59c6171eddb2dd77f4ad2 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 31 Oct 2025 01:26:26 +0100 Subject: [PATCH] fix: mark unused settings parameter as intentionally unused --- src/services/articleService.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/services/articleService.ts b/src/services/articleService.ts index 6fb72829..aa740d92 100644 --- a/src/services/articleService.ts +++ b/src/services/articleService.ts @@ -105,11 +105,13 @@ export function cacheArticleEvent(event: NostrEvent, settings?: UserSettings): v } export function saveToCache(naddr: string, content: ArticleContent, settings?: UserSettings): void { + // Respect user settings: if image caching is disabled, we could skip article caching too + // However, for offline-first design, we default to caching unless explicitly disabled + // Future: could add explicit enableArticleCache setting + // For now, we cache aggressively but handle errors gracefully + // Note: settings parameter reserved for future use + void settings // Mark as intentionally unused for now try { - // Respect user settings: if image caching is disabled, we could skip article caching too - // However, for offline-first design, we default to caching unless explicitly disabled - // Future: could add explicit enableArticleCache setting - // For now, we cache aggressively but handle errors gracefully const cacheKey = getCacheKey(naddr) console.log('[article-cache] 💾 Saving to cache', {