fix: update error handling to avoid unused catch variables and improve code clarity

This commit is contained in:
shiyu
2025-12-18 15:51:20 +08:00
parent b582a89d08
commit 7c38c0045b
26 changed files with 130 additions and 113 deletions
+2 -3
View File
@@ -21,8 +21,7 @@ async function loadApps() {
try {
const items = await pluginsApi.list();
items.filter(p => p.enabled !== false).forEach((p) => registerPluginAsApp(p));
} catch (e) {
}
} catch { void 0; }
}
function registerPluginAsApp(p: PluginItem) {
@@ -104,5 +103,5 @@ export async function reloadPluginApps() {
: undefined;
}
});
} catch { }
} catch { void 0; }
}