diff --git a/modules/core/src/main/scala/org/scalasteward/core/application/RunResults.scala b/modules/core/src/main/scala/org/scalasteward/core/application/RunResults.scala index 0a90348546..9b3af428be 100644 --- a/modules/core/src/main/scala/org/scalasteward/core/application/RunResults.scala +++ b/modules/core/src/main/scala/org/scalasteward/core/application/RunResults.scala @@ -23,7 +23,7 @@ import org.scalasteward.core.data.Repo case class RunResults(results: List[Either[(Repo, Throwable), Repo]]) { val (reposWithFailures, successRepos) = results.separate - val exitCode: ExitCode = if (reposWithFailures.isEmpty) ExitCode.Success else ExitCode.Error + val exitCode: ExitCode = if (successRepos.nonEmpty) ExitCode.Success else ExitCode.Error val markdownSummary: String = { val failuresSummaryOpt = Option.when(reposWithFailures.nonEmpty) {