Skip to content

Commit 4682324

Browse files
committed
fix codacy complaints
1 parent 223a412 commit 4682324

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ujson/shared/src/main/scala/diffson/ujson/package.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ package object ujson {
5454

5555
implicit val pointerDecoder: Reader[Pointer] =
5656
implicitly[Reader[String]].map { str =>
57-
import cats.implicits._
58-
Pointer.parse[Try](str).get
57+
Pointer.parse[Try](str).fold(throw _, identity)
5958
}
6059

6160
private val operationAsJson: Operation[Value] => Value = {

0 commit comments

Comments
 (0)