Showing 1 of 3 total issues
Consider simplifying this complex logical expression. Open
Open
if (Array.isArray(cli._) && !cli._.length) {
var pkg = require('load-pkg').sync(process.cwd())
var prop = cli.configProp || cli.prop || 'metadata.related'
cli._ = get(pkg, prop) || get(pkg, 'related') || get(pkg, 'verb.related.list')
if (!cli._ || (Array.isArray(cli._) && !cli._.length)) {
- Create a ticketCreate a ticket