Skip to content

Commit

Permalink
Correct startsWith to meet detekt rules
Browse files Browse the repository at this point in the history
  • Loading branch information
OptimumCode committed Jul 24, 2023
1 parent f42c128 commit 711beff
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 711beff

Please sign in to comment.