Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{Object.keys(plugins).map(name => {
// plugin is not enabled
if (!plugins[name]) {
return null;
}
try {
const Plugin = require('../plugin/' + name);
return ;
} catch (e) {
logger.warn(`Icarus cannot load plugin "${name}"`);
return null;
}
})}
;