Skip to content

Commit

Permalink
Fixed a success match in BSP buildTargetRun handler (#2771)
Browse files Browse the repository at this point in the history
Pull request: #2771
  • Loading branch information
lefou authored Sep 20, 2023
1 parent bddebf7 commit e9bc504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsp/worker/src/mill/bsp/worker/MillBuildServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ private class MillBuildServer(
logger = new MillBspLogger(client, runTask.hashCode(), ev.baseLogger)
)
val response = runResult.results(runTask) match {
case _: Result.Success[Any] => new RunResult(StatusCode.OK)
case r if r.result.asSuccess.isDefined => new RunResult(StatusCode.OK)
case _ => new RunResult(StatusCode.ERROR)
}
params.getOriginId match {
Expand Down

0 comments on commit e9bc504

Please sign in to comment.