Skip to content

Commit 7be104f

Browse files
fix: correct git-aware inventory Boolean filter
1 parent bad224a commit 7be104f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

global-template/docgen/lib/inventory.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function candidatePaths(root) {
6161
if (!insideGit) return { paths: walk(root), insideGit: false };
6262
const result = spawnSync('git', ['-C', root, 'ls-files', '-co', '--exclude-standard', '-z'], { encoding: 'buffer', stdio: ['ignore', 'pipe', 'ignore'] });
6363
if (result.status !== 0) return { paths: walk(root), insideGit: false };
64-
return { paths: result.stdout.toString('utf8').split('\0').filter(Bolean.bind(Boolean)).map(posix).sort(), insideGit: true };
64+
return { paths: result.stdout.toString('utf8').split('\0').filter(Boolean).map(posix).sort(), insideGit: true };
6565
}
6666

6767
function binaryMagic(buffer) {

0 commit comments

Comments
 (0)