Skip to content

Commit

Permalink
src:goGenerateTests: fix lint
Browse files Browse the repository at this point in the history
Change-Id: Ifd980c7de7a006cf79e0b5a6f4d56f2bceec6959
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/389658
Trust: Hyang-Ah Hana Kim <[email protected]>
Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
Reviewed-by: Suzy Mueller <[email protected]>
TryBot-Result: kokoro <[email protected]>
  • Loading branch information
hyangah committed Mar 4, 2022
1 parent 1cc1b7c commit c783d6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/goGenerateTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,5 +227,7 @@ function generateTests(conf: Config, goConfig: vscode.WorkspaceConfiguration): P
async function getFunctions(doc: vscode.TextDocument): Promise<vscode.DocumentSymbol[]> {
const documentSymbolProvider = new GoDocumentSymbolProvider();
const symbols = await documentSymbolProvider.provideDocumentSymbols(doc, null);
return symbols[0].children.filter((sym) => [vscode.SymbolKind.Function, vscode.SymbolKind.Method].includes(sym.kind));
return symbols[0].children.filter((sym) =>
[vscode.SymbolKind.Function, vscode.SymbolKind.Method].includes(sym.kind)
);
}

0 comments on commit c783d6f

Please sign in to comment.