Skip to content

Commit

Permalink
Removes the necessary nil clause on Blank protocol for Date types
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Reyt committed Nov 11, 2020
1 parent 47def0b commit 1c4d79e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/vex/blank.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ defimpl Vex.Blank, for: Map do
end

defimpl Vex.Blank, for: [Date, DateTime, NaiveDateTime, Time] do
def blank?(nil), do: true
def blank?(_), do: false
end

Expand Down

0 comments on commit 1c4d79e

Please sign in to comment.