Skip to content

Commit 581f457

Browse files
committed
Do not reduce coverage
1 parent 4259afa commit 581f457

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

modules/core/src/main/scala/org/scalasteward/core/application/SelfCheckAlg.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ final class SelfCheckAlg[F[_]](config: Config)(implicit
6363

6464
private def checkUrlChecker: F[Unit] =
6565
config.urlCheckerTestUrls.traverse_ { url =>
66-
urlChecker.exists(url).flatMap {
67-
case true => F.unit
68-
case false =>
69-
logger.warn(s"Self check of UrlChecker failed: checking that $url exists failed")
66+
urlChecker.exists(url).flatMap { urlExists =>
67+
val msg = s"Self check of UrlChecker failed: checking that $url exists failed"
68+
F.whenA(!urlExists)(logger.warn(msg))
7069
}
7170
}
7271
}

0 commit comments

Comments
 (0)