Skip to content

Commit a40fead

Browse files
Add nullish coalescing
Co-authored-by: John Murray <[email protected]>
1 parent 0d9d41e commit a40fead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/FileSystemProvider/TextSearchProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class TextSearchProvider implements vscode.TextSearchProvider {
3131
case: query.isCaseSensitive,
3232
// If options.maxResults is null the search is supposed to return an unlimited number of results
3333
// Since there's no way for us to pass "unlimited" to the server, I choose a very large number
34-
max: options.maxResults !== null ? options.maxResults : 100000,
34+
max: options.maxResults ?? 100000,
3535
})
3636
.then((data) => data.result)
3737
.then((files: SearchResult[]) =>

0 commit comments

Comments
 (0)