We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 080f4ce commit 37a9398Copy full SHA for 37a9398
lib/adapters/definition-adapter.ts
@@ -72,8 +72,10 @@ export default class DefinitionAdapter {
72
locationResult: Location | Location[] | LocationLink[] | null
73
): Location[] | LocationLink[] | null {
74
if (locationResult == null) {
75
+ // TODO use ===
76
return null
77
}
78
+ // TODO `d.targetRange.start` never becomes `null` according to the types
79
if (isLocationLinkArray(locationResult)) {
80
return locationResult.filter((d) => d.targetRange.start != null)
81
0 commit comments