From aab983f1cbfe10d3a8afd184a033e5f32d1e4adc Mon Sep 17 00:00:00 2001 From: Juliano Alves Date: Fri, 13 Sep 2024 18:01:31 +0100 Subject: [PATCH] fix formatting and exception --- zio-schema/shared/src/main/scala/zio/schema/Schema.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zio-schema/shared/src/main/scala/zio/schema/Schema.scala b/zio-schema/shared/src/main/scala/zio/schema/Schema.scala index 5fa6cf310..57ec401aa 100644 --- a/zio-schema/shared/src/main/scala/zio/schema/Schema.scala +++ b/zio-schema/shared/src/main/scala/zio/schema/Schema.scala @@ -878,7 +878,8 @@ object Schema extends SchemaPlatformSpecific with SchemaEquality { override def makeAccessors(b: AccessorBuilder): b.Traversal[prelude.NonEmptyMap[K, V], (K, V)] = b.makeTraversal(self, keySchema <*> valueSchema) - override def empty: prelude.NonEmptyMap[K, V] = throw new IllegalArgumentException(s"NonEmptySequence $identity cannot be empty") + override def empty: prelude.NonEmptyMap[K, V] = + throw new IllegalArgumentException("NonEmptyMap cannot be empty") } final case class NonEmptySequence[Col, Elm, I]( @@ -10248,4 +10249,4 @@ object Schema extends SchemaPlatformSpecific with SchemaEquality { type Field22 = F22 } } -} \ No newline at end of file +}