Skip to content

Commit 557f531

Browse files
committed
Remove the need for semicolon inside forEach loop
1 parent db8dc83 commit 557f531

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/analyser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ export function analyze(uri: string, contents: string): Diagnostic[] {
8282
export function findDefinition(name: string): Location[] {
8383
const symbols: SymbolInformation[] = []
8484
Object.keys(declarations).forEach(uri => {
85-
;(declarations[uri][name] || []).forEach(d => symbols.push(d))
85+
const declarationNames = declarations[uri][name] || []
86+
declarationNames.forEach(d => symbols.push(d))
8687
})
8788
return symbols.map(s => s.location)
8889
}

0 commit comments

Comments
 (0)