diff options
author | isaacs <i@izs.me> | 2020-07-30 00:25:19 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-07-30 01:20:11 +0300 |
commit | f0c4296ff4b6b8e0f4b94a3cac411d75e2d62267 (patch) | |
tree | 6ec351ed5580f32a9b0988c1ef8310ecd3af505c /lib/outdated.js | |
parent | 468bbd3c38951b0b1a64d1501e80c40990660c5b (diff) |
fix lintfix script, use flat ternaries
PR-URL: https://github.com/npm/cli/pull/1543
Credit: @isaacs
Close: #1543
Reviewed-by: @ruyadorno
Diffstat (limited to 'lib/outdated.js')
-rw-r--r-- | lib/outdated.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/outdated.js b/lib/outdated.js index f86550be9..660f1cd05 100644 --- a/lib/outdated.js +++ b/lib/outdated.js @@ -134,8 +134,8 @@ async function outdated_ (tree, deps, opts) { const type = edge.optional ? 'optionalDependencies' : edge.peer ? 'peerDependencies' - : edge.dev ? 'devDependencies' - : 'dependencies' + : edge.dev ? 'devDependencies' + : 'dependencies' // deps different from prod not currently // on disk are not included in the output |