Skip to content

Commit

Permalink
Remove a duplicate ContextRange
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Nov 13, 2024
1 parent c86bc7a commit 6a57268
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ object RangeIndex {
}

override def onStruct(node: playground.generated.nodes.Struct): List[ContextRange] =
ContextRange(node.range, base) ::
ContextRange(node.range.shrink1, base.inStructBody) ::
ContextRange(node.range.shrink1, base.inStructBody) ::
node.bindings.toList.flatMap { binding =>
(binding.key, binding.value).tupled.toList.flatMap { (key, value) =>
ContextRange(value.range, base.inStructBody.inStructValue(key.source)) ::
Expand Down

0 comments on commit 6a57268

Please sign in to comment.