Skip to content

Commit daf0d99

Browse files
ayazhafizKeen Yee Liau
authored andcommitted
refactor: cleanup of unnecessary branch check
Fly-by removal of superfluous conditional check.
1 parent a842599 commit daf0d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ connection.onCompletion((params: lsp.CompletionParams) => {
260260
{
261261
// options
262262
});
263-
if (!completions || !completions.entries.length) {
263+
if (!completions) {
264264
return;
265265
}
266266
return completions.entries.map((e) => tsCompletionEntryToLspCompletionItem(e, position));

0 commit comments

Comments
 (0)