From 46823244132b6935489e220d09b8bac3ec9c12e7 Mon Sep 17 00:00:00 2001 From: Raphael Bosshard Date: Sat, 20 Jan 2024 18:39:52 +0100 Subject: [PATCH] fix codacy complaints --- ujson/shared/src/main/scala/diffson/ujson/package.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ujson/shared/src/main/scala/diffson/ujson/package.scala b/ujson/shared/src/main/scala/diffson/ujson/package.scala index 5c9365d..c59ce5c 100644 --- a/ujson/shared/src/main/scala/diffson/ujson/package.scala +++ b/ujson/shared/src/main/scala/diffson/ujson/package.scala @@ -54,8 +54,7 @@ package object ujson { implicit val pointerDecoder: Reader[Pointer] = implicitly[Reader[String]].map { str => - import cats.implicits._ - Pointer.parse[Try](str).get + Pointer.parse[Try](str).fold(throw _, identity) } private val operationAsJson: Operation[Value] => Value = {