mirror of https://github.com/sbt/sbt.git
Fix unused pattern vals warnings in main-command project
This commit is contained in:
parent
0454b873bf
commit
ede94cb34c
|
|
@ -46,7 +46,7 @@ private[sbt] final class ConsoleChannel(val name: String) extends CommandChannel
|
|||
event match {
|
||||
case e: ConsolePromptEvent =>
|
||||
askUserThread match {
|
||||
case Some(x) => //
|
||||
case Some(_) =>
|
||||
case _ =>
|
||||
val x = makeAskUserThread(e.state)
|
||||
askUserThread = Some(x)
|
||||
|
|
@ -56,7 +56,7 @@ private[sbt] final class ConsoleChannel(val name: String) extends CommandChannel
|
|||
e.lastSource match {
|
||||
case Some(src) if src.channelName != name =>
|
||||
askUserThread match {
|
||||
case Some(x) =>
|
||||
case Some(_) =>
|
||||
// keep listening while network-origin command is running
|
||||
// make sure to test Windows and Cygwin, if you uncomment
|
||||
// shutdown()
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ class NetworkClient(arguments: List[String]) { self =>
|
|||
try {
|
||||
connection.publish(bytes)
|
||||
} catch {
|
||||
case e: SocketException =>
|
||||
case _: SocketException =>
|
||||
// log.debug(e.getMessage)
|
||||
// toDel += client
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ object IPC {
|
|||
def createServer(attempts: Int): ServerSocket =
|
||||
if (attempts > 0)
|
||||
try { new ServerSocket(nextPort, 1, loopback) } catch {
|
||||
case NonFatal(e) => createServer(attempts - 1)
|
||||
case NonFatal(_) => createServer(attempts - 1)
|
||||
} else
|
||||
sys.error("Could not connect to socket: maximum attempts exceeded")
|
||||
createServer(10)
|
||||
|
|
|
|||
Loading…
Reference in New Issue