Skip to content

Commit a71b428

Browse files
committed
Remove ?? position as it never was used
1 parent 6a791fd commit a71b428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SourceKitLSP/Swift/AdjustPositionToStartOfIdentifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extension SwiftLanguageService {
5656
let visitor = StartOfIdentifierFinder(position: snapshot.absolutePosition(of: position))
5757
visitor.walk(tree)
5858
if let resolvedPosition = visitor.resolvedPosition {
59-
return snapshot.position(of: resolvedPosition) ?? position
59+
return snapshot.position(of: resolvedPosition)
6060
}
6161
return position
6262
}

0 commit comments

Comments
 (0)