tunnckoCore/npm-related

View on GitHub

Showing 1 of 3 total issues

Consider simplifying this complex logical expression.
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)) {
Severity: Major
Found in cli.js - About 40 mins to fix
Severity
Category
Status
Source
Language