mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-09-05 23:57:19 +08:00
fix: update error handling to avoid unused catch variables and improve code clarity
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user