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 26c8283 commit 18f8e27Copy full SHA for 18f8e27
src/commonMain/kotlin/io/github/optimumcode/json/pointer/JsonPointer.kt
@@ -181,7 +181,6 @@ public sealed class JsonPointer(
181
private class PointerParent(
182
val parent: PointerParent?,
183
val segment: String,
184
- val index: Int? = null,
185
)
186
187
private fun buildPath(
@@ -193,18 +192,10 @@ public sealed class JsonPointer(
193
192
while (parentValue != null) {
194
curr =
195
parentValue.run {
196
- if (index == null) {
197
- SegmentPointer(
198
- segment,
199
- curr,
200
- )
201
- } else {
202
203
204
205
- index,
206
207
- }
+ SegmentPointer(
+ segment,
+ curr,
+ )
208
}
209
parentValue = parentValue.parent
210
0 commit comments