Skip to content

Commit a023f51

Browse files
NIT Minor refacto
1 parent c96750b commit a023f51

File tree

1 file changed

+3
-2
lines changed
  • modules/cli/src/main/scala/scala/cli/commands/run

1 file changed

+3
-2
lines changed

modules/cli/src/main/scala/scala/cli/commands/run/Run.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ object Run extends ScalaCommand[RunOptions] with BuildCommandHelpers {
213213
}
214214
res.orReport(logger).map(_.main).foreach {
215215
case s: Build.Successful =>
216-
for ((proc, _) <- processOpt) // If the process doesn't exit, send SIGKILL
217-
if (proc.isAlive) ProcUtil.forceKillProcess(proc, logger)
216+
for ((proc, _) <- processOpt if proc.isAlive)
217+
// If the process doesn't exit, send SIGKILL
218+
ProcUtil.forceKillProcess(proc, logger)
218219
val maybeProcess = maybeRun(
219220
s,
220221
allowTerminate = false,

0 commit comments

Comments
 (0)