Skip to content

Commit e854008

Browse files
committed
Simplify getPipelineCompletions
1 parent c0a6ef3 commit e854008

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

server/src/server.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -885,10 +885,8 @@ function getTypeCompletions(): CompletionItem[] {
885885
}
886886

887887
function getPipelineCompletions(): CompletionItem[] {
888-
const completions: CompletionItem[] = [];
889-
890-
// Add common pipeline operators
891-
completions.push(
888+
return [
889+
// Add common pipeline operators
892890
{
893891
label: "|>",
894892
kind: CompletionItemKind.Operator,
@@ -909,9 +907,8 @@ function getPipelineCompletions(): CompletionItem[] {
909907
detail: "Function composition",
910908
documentation: "Compose functions (left to right)",
911909
},
912-
);
913-
914-
return [...completions, ...getFunctionCompletions()];
910+
...getFunctionCompletions()
911+
];
915912
}
916913

917914
function getImportCompletions(): CompletionItem[] {

0 commit comments

Comments
 (0)