Skip to content

Commit

Permalink
Removing unnecessary check for .js postfix (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeRedDev committed Jan 6, 2024
1 parent 5be2d21 commit 8bfeb4d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions squad-server/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`);

Expand Down

0 comments on commit 8bfeb4d

Please sign in to comment.