fix: linter errors

This commit is contained in:
Xiaohan-Tian
2026-05-24 23:47:45 -07:00
parent b80066c2a4
commit 2c84b48f63
12 changed files with 448 additions and 377 deletions
+2 -2
View File
@@ -79,11 +79,11 @@ function formatKGOneTabLabel(tab: Tab): string {
return 'Separator';
}
export function getDefaultKGOneTab(mode: KGOneMode): Tab {
function getDefaultKGOneTab(mode: KGOneMode): Tab {
return mode === 'local-separator' ? 'separator' : 'fullsong';
}
export function getKGOneMode(): KGOneMode {
function getKGOneMode(): KGOneMode {
const enabled = (ConfigManager.instance().get('general.kgone.enabled') as boolean | undefined) ?? false;
return enabled ? 'server' : 'local-separator';
}