Skip to content

Commit a8a2b6f

Browse files
authored
Update index.ts
1 parent 6287000 commit a8a2b6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function detective(src, options: detective.Options = { url: false }) {
6262
const files = nodes
6363
.filter((node) => isUrlNode(node))
6464
.map((node) => getValueOrUrl(node))
65-
.filter((file): file is string => !!file);
65+
.filter((file): file is string => Boolean(file));
6666

6767
for (const file of files) {
6868
debug('found %s of %s', 'url() in declaration', file);

0 commit comments

Comments
 (0)