We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e3e83b commit d6b134fCopy full SHA for d6b134f
1 file changed
lib/cache.js
@@ -80,7 +80,7 @@ const add = async (args, where) => {
80
' npm cache add <folder>\n'
81
log.silly('cache add', 'args', args)
82
const spec = args[0] +
83
- (args[1] === undefined || args[1] === null ? `@${args[1]}` : '')
+ (args[1] === undefined || args[1] === null ? '' : `@${args[1]}`)
84
85
log.verbose('cache add', 'spec', spec)
86
if (!spec) {
0 commit comments