Skip to content

Commit

Permalink
fix formatting and exception
Browse files Browse the repository at this point in the history
  • Loading branch information
juliano committed Sep 17, 2024
1 parent 0128a15 commit 3abbd4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions zio-schema/shared/src/main/scala/zio/schema/Schema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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](
Expand Down Expand Up @@ -10248,4 +10249,4 @@ object Schema extends SchemaPlatformSpecific with SchemaEquality {
type Field22 = F22
}
}
}
}

0 comments on commit 3abbd4e

Please sign in to comment.