We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4259afa commit 581f457Copy full SHA for 581f457
modules/core/src/main/scala/org/scalasteward/core/application/SelfCheckAlg.scala
@@ -63,10 +63,9 @@ final class SelfCheckAlg[F[_]](config: Config)(implicit
63
64
private def checkUrlChecker: F[Unit] =
65
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")
+ urlChecker.exists(url).flatMap { urlExists =>
+ val msg = s"Self check of UrlChecker failed: checking that $url exists failed"
+ F.whenA(!urlExists)(logger.warn(msg))
70
}
71
72
0 commit comments