diff --git a/run/src/main/scala/sbt/Run.scala b/run/src/main/scala/sbt/Run.scala index a0a64346d..ff5426b6d 100644 --- a/run/src/main/scala/sbt/Run.scala +++ b/run/src/main/scala/sbt/Run.scala @@ -38,7 +38,7 @@ class ForkRun(config: ForkOptions) extends ScalaRun { 1 } val exitCode = try process.exitValue() - catch { case e: InterruptedException => cancel() } + catch { case _: InterruptedException => cancel() } processExitCode(exitCode, "runner") } diff --git a/run/src/main/scala/sbt/TrapExit.scala b/run/src/main/scala/sbt/TrapExit.scala index 94a3f60f5..d1a16ef52 100644 --- a/run/src/main/scala/sbt/TrapExit.scala +++ b/run/src/main/scala/sbt/TrapExit.scala @@ -162,7 +162,7 @@ private final class TrapExit(delegateManager: SecurityManager) extends SecurityM executionThread.start() // thread actually evaluating `f` finish(app, log) } 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) } finally app.cleanup() }