From 187a86119430596d8e35c76482cf611f65c1d829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sch=C3=A4fer?= Date: Wed, 18 Oct 2017 20:01:43 +0200 Subject: [PATCH] Fix unused pattern match vals in run project --- run/src/main/scala/sbt/Run.scala | 2 +- run/src/main/scala/sbt/TrapExit.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() }