mirror of https://github.com/sbt/sbt.git
Fix unused pattern match vals in run project
This commit is contained in:
parent
ede94cb34c
commit
187a861194
|
|
@ -38,7 +38,7 @@ class ForkRun(config: ForkOptions) extends ScalaRun {
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
val exitCode = try process.exitValue()
|
val exitCode = try process.exitValue()
|
||||||
catch { case e: InterruptedException => cancel() }
|
catch { case _: InterruptedException => cancel() }
|
||||||
processExitCode(exitCode, "runner")
|
processExitCode(exitCode, "runner")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,7 @@ private final class TrapExit(delegateManager: SecurityManager) extends SecurityM
|
||||||
executionThread.start() // thread actually evaluating `f`
|
executionThread.start() // thread actually evaluating `f`
|
||||||
finish(app, log)
|
finish(app, log)
|
||||||
} catch {
|
} catch {
|
||||||
case e: InterruptedException => // here, the thread that started the run has been interrupted, not the main thread of the executing code
|
case _: InterruptedException => // here, the thread that started the run has been interrupted, not the main thread of the executing code
|
||||||
cancel(executionThread, app, log)
|
cancel(executionThread, app, log)
|
||||||
} finally app.cleanup()
|
} finally app.cleanup()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue