Skip to content

Commit

Permalink
fix: properly return unwrapped list of errors when :special class i…
Browse files Browse the repository at this point in the history
…s used
  • Loading branch information
zachdaniel committed May 2, 2024
1 parent 61d76e5 commit 623b27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/splode.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 623b27b

Please sign in to comment.