mirror of
https://github.com/dergigi/boris.git
synced 2025-12-18 23:24:22 +01:00
fix: mark unused settings parameter as intentionally unused
This commit is contained in:
@@ -105,11 +105,13 @@ export function cacheArticleEvent(event: NostrEvent, settings?: UserSettings): v
|
||||
}
|
||||
|
||||
export function saveToCache(naddr: string, content: ArticleContent, settings?: UserSettings): void {
|
||||
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
|
||||
// Note: settings parameter reserved for future use
|
||||
void settings // Mark as intentionally unused for now
|
||||
try {
|
||||
|
||||
const cacheKey = getCacheKey(naddr)
|
||||
console.log('[article-cache] 💾 Saving to cache', {
|
||||
|
||||
Reference in New Issue
Block a user