From 6d0aef8ae26e63948ae0b679b24bf4569b7984d7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Sep 2022 16:03:12 -0400 Subject: [PATCH] *Ensure plugin list is unique --- src/modules/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/plugin.ts b/src/modules/plugin.ts index 15f4819..28fe151 100644 --- a/src/modules/plugin.ts +++ b/src/modules/plugin.ts @@ -120,7 +120,7 @@ export function getPluginAPI(): PluginApiManager { } export async function loadPlugins() { - for (const plugin of config.array("plugins")) { + for (const plugin of [...new Set(config.array("plugins", []))] as []) { await getPluginAPI().loadPlugin(plugin); } }