Skip to content

Commit 4e8d7ee

Browse files
committed
fix linting
1 parent cc2b1c1 commit 4e8d7ee

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/providers/FileSystemPovider/FileSearchProvider.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,21 @@ export class FileSearchProvider implements vscode.FileSearchProvider {
2525
.getDocNames({
2626
filter: query.pattern,
2727
category,
28-
generated
28+
generated,
2929
})
3030
.then((data) => data.result.content)
3131
.then((files: DocSearchResult[]) =>
32-
files.map((file) => {
33-
if (category === "*" && file.cat === "CSP") {
34-
return null;
35-
}
36-
if (!options.maxResults || ++counter <= options.maxResults) {
37-
return options.folder.with({ path: `/${file.name}` });
38-
} else {
39-
return null;
40-
}
41-
})
32+
files
33+
.map((file) => {
34+
if (category === "*" && file.cat === "CSP") {
35+
return null;
36+
}
37+
if (!options.maxResults || ++counter <= options.maxResults) {
38+
return options.folder.with({ path: `/${file.name}` });
39+
} else {
40+
return null;
41+
}
42+
})
4243
.filter((el) => el !== null)
4344
);
4445
}

0 commit comments

Comments
 (0)