Skip to content

Commit 37a9398

Browse files
committed
chore: add TODO for checking the type of d.targetRange.start [skip ci]
1 parent 080f4ce commit 37a9398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/adapters/definition-adapter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ export default class DefinitionAdapter {
7272
locationResult: Location | Location[] | LocationLink[] | null
7373
): Location[] | LocationLink[] | null {
7474
if (locationResult == null) {
75+
// TODO use ===
7576
return null
7677
}
78+
// TODO `d.targetRange.start` never becomes `null` according to the types
7779
if (isLocationLinkArray(locationResult)) {
7880
return locationResult.filter((d) => d.targetRange.start != null)
7981
}

0 commit comments

Comments
 (0)