Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hubertp committed Jul 3, 2024
1 parent 81aef66 commit 57fb2b7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ object SnakeYamlDecoder {
}
)
val lifted = liftEither(result).map(_.toMap)
if (lifted.isRight && lifted
if (
lifted.isRight && lifted
.map(_.size)
.getOrElse(-1) != result.size && !keyMapper.duplicatesAllowed
) Left(new YAMLException("YAML definition contains duplicate entries"))
Expand Down

0 comments on commit 57fb2b7

Please sign in to comment.