From 8bfeb4d9d0b66d9fb95b61087df31b02145a13a8 Mon Sep 17 00:00:00 2001 From: Michael Martel Date: Sun, 7 Jan 2024 00:46:56 +0100 Subject: [PATCH] Removing unnecessary check for .js postfix (#341) --- squad-server/factory.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/squad-server/factory.js b/squad-server/factory.js index 21a2e703..a8865a5a 100644 --- a/squad-server/factory.js +++ b/squad-server/factory.js @@ -81,11 +81,6 @@ export default class SquadServerFactory { for (const pluginConfig of config.plugins) { if (!pluginConfig.enabled) continue; - // ignore non JS files - if (!pluginConfig.plugin.endsWith('.js')) { - continue; - } - if (!plugins[pluginConfig.plugin]) throw new Error(`Plugin ${pluginConfig.plugin} does not exist.`);