From e983012265160e5ef12440729be1d1d0e2485419 Mon Sep 17 00:00:00 2001 From: Marco F Date: Wed, 22 Nov 2023 14:32:06 +0100 Subject: [PATCH] Fixes #1268 --- modules/webclient/src/main/scala/scaladex/client/Client.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/webclient/src/main/scala/scaladex/client/Client.scala b/modules/webclient/src/main/scala/scaladex/client/Client.scala index 04ee3989b..6968dd546 100644 --- a/modules/webclient/src/main/scala/scaladex/client/Client.scala +++ b/modules/webclient/src/main/scala/scaladex/client/Client.scala @@ -109,9 +109,7 @@ object Client { res.text().toFuture.map(extractDefaultBranch) } else { Future.successful("master") } } - .map { res => - val resJson = js.JSON.parse(res) - val branch = resJson.asInstanceOf[Repo].default_branch + .map { branch => fixImages(branch, organization, repository) } }