diff --git a/tools/isobuild/package-source.js b/tools/isobuild/package-source.js index 3adbc4dcaa..f8b6ba1e45 100644 --- a/tools/isobuild/package-source.js +++ b/tools/isobuild/package-source.js @@ -201,7 +201,7 @@ class SymlinkLoopChecker { this._realpathCache = {}; } - check(relDir, quietly) { + check(relDir, quietly = true) { const absPath = files.pathJoin(this.sourceRoot, relDir); try { @@ -213,7 +213,7 @@ class SymlinkLoopChecker { // else leave realPath undefined } - if (realPath === undefined || _.has(this._seenPaths, realPath)) { + if (! realPath || _.has(this._seenPaths, realPath)) { if (! quietly) { buildmessage.error("Symlink cycle detected at " + relDir); }