diff --git a/src/commonMain/kotlin/io/github/optimumcode/json/pointer/extensions.kt b/src/commonMain/kotlin/io/github/optimumcode/json/pointer/extensions.kt index 4d4608db..bb80dad3 100644 --- a/src/commonMain/kotlin/io/github/optimumcode/json/pointer/extensions.kt +++ b/src/commonMain/kotlin/io/github/optimumcode/json/pointer/extensions.kt @@ -113,9 +113,6 @@ public fun JsonPointer.relative(other: JsonPointer): JsonPointer { * ``` */ public fun JsonPointer.startsWith(other: JsonPointer): Boolean { - if (this is EmptyPointer) { - return other is EmptyPointer - } var primary: JsonPointer? = this var secondary: JsonPointer? = other while (primary != null && secondary != null) {