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 13, 2024
1 parent 866f37e commit aab983f
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 aab983f

Please sign in to comment.