Remove unused match

This commit is contained in:
Eugene Yokota 2016-10-13 18:15:54 -04:00
parent 4e09e9ef68
commit f1055c79df
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,6 @@
package sbt
import java.lang.reflect.InvocationTargetException
import java.io.File
import xsbti.AppConfiguration
import sbt.classpath.ClasspathUtilities
@ -66,10 +67,7 @@ private[sbt] object TemplateCommandUtil {
val method = interfaceClass.getMethod(methodName, argTypes: _*)
try { method.invoke(interface, args: _*) }
catch {
case e: java.lang.reflect.InvocationTargetException =>
e.getCause match {
case t => throw t
}
case e: InvocationTargetException => throw e.getCause
}
}
private def getInterfaceClass(name: String, loader: ClassLoader) = Class.forName(name, true, loader)