mirror of
https://github.com/ash-project/splode.git
synced 2024-09-19 12:52:46 +12:00
fix: properly return unwrapped list of errors when :special
class is used
This commit is contained in:
parent
61d76e5be3
commit
623b27bd90
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ defmodule Splode do
|
|||
|
||||
if Enum.count_until(errors, 2) == 1 &&
|
||||
Enum.at(errors, 0).class == :special do
|
||||
[List.first(errors)]
|
||||
List.first(errors)
|
||||
else
|
||||
values
|
||||
|> flatten_preserving_keywords()
|
||||
|
|
Loading…
Reference in a new issue