From ee6e6e7cdd390736900c998a84b20366f76d1043 Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Sun, 7 Jan 2018 11:57:53 +0000 Subject: Run Scala-fmt --- core/shared/src/main/scala/interface.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/shared/src/main/scala/interface.scala') diff --git a/core/shared/src/main/scala/interface.scala b/core/shared/src/main/scala/interface.scala index 51abc22..846eee9 100644 --- a/core/shared/src/main/scala/interface.scala +++ b/core/shared/src/main/scala/interface.scala @@ -178,7 +178,10 @@ final class SealedTrait[Typeclass[_], Type](val typeName: TypeName, if (ix < subtypesArray.length) { val sub = subtypesArray(ix) if (sub.cast.isDefinedAt(value)) handle(sub) else rec(ix + 1) - } else throw new IllegalArgumentException(s"The given value `$value` is not a sub type of `$typeName`") + } else + throw new IllegalArgumentException( + s"The given value `$value` is not a sub type of `$typeName`" + ) rec(0) } } -- cgit v1.2.3