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 c96750b commit a023f51Copy full SHA for a023f51
modules/cli/src/main/scala/scala/cli/commands/run/Run.scala
@@ -213,8 +213,9 @@ object Run extends ScalaCommand[RunOptions] with BuildCommandHelpers {
213
}
214
res.orReport(logger).map(_.main).foreach {
215
case s: Build.Successful =>
216
- for ((proc, _) <- processOpt) // If the process doesn't exit, send SIGKILL
217
- if (proc.isAlive) ProcUtil.forceKillProcess(proc, logger)
+ for ((proc, _) <- processOpt if proc.isAlive)
+ // If the process doesn't exit, send SIGKILL
218
+ ProcUtil.forceKillProcess(proc, logger)
219
val maybeProcess = maybeRun(
220
s,
221
allowTerminate = false,
0 commit comments