Skip to content

Commit 30b1fbc

Browse files
authored
Differentiate between empty and undefined values
1 parent 0324192 commit 30b1fbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/npm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ class Npm {
353353
}
354354

355355
get logsDir () {
356-
return this.config.get('logs-dir') || join(this.cache, '_logs')
356+
const theDir = this.config.get('logs-dir') === undefined ? '_logs' : this.config.get('logs-dir');
357+
return join(this.cache, theDir)
357358
}
358359

359360
get logPath () {

0 commit comments

Comments
 (0)