eslint fix

This commit is contained in:
mtvpls
2026-01-23 16:41:49 +08:00
parent a167763324
commit 6eaed34b14
107 changed files with 311 additions and 318 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ export function clearEmbyCache(): { cleared: number } {
/**
* 获取缓存的 Emby 媒体库列表
*/
export function getCachedEmbyViews(embyKey: string = 'default'): any | null {
export function getCachedEmbyViews(embyKey = 'default'): any | null {
const cacheKey = `${EMBY_VIEWS_CACHE_KEY}:${embyKey}`;
const entry = EMBY_CACHE.get(cacheKey);
if (!entry) return null;
@@ -89,7 +89,7 @@ export function getCachedEmbyViews(embyKey: string = 'default'): any | null {
/**
* 设置缓存的 Emby 媒体库列表
*/
export function setCachedEmbyViews(embyKey: string = 'default', data: any): void {
export function setCachedEmbyViews(embyKey = 'default', data: any): void {
const now = Date.now();
const cacheKey = `${EMBY_VIEWS_CACHE_KEY}:${embyKey}`;
EMBY_CACHE.set(cacheKey, {