src/commands/ember.js
Consider simplifying this complex logical expression. Open
Open
if ((!appName && !options.list) || (!appName && !!(options.use || options.prod || options.build || options.port))) {
console.log(' The command cannot be run this way.\n\tkoaton ember -h\n to see help.'.yellow);
return res;
} else if (appName && !utils.canAccess(ProyPath('ember', appName)) && !!(options.use || options.prod || options.build || options.port)) {
console.log(' That ember app does not exist.');
Consider simplifying this complex logical expression. Open
Open
} else if (appName && !utils.canAccess(ProyPath('ember', appName)) && !!(options.use || options.prod || options.build || options.port)) {
console.log(' That ember app does not exist.');
return res;
}