Skip to content

Commit

Permalink
Explicitly match on fetch_change (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
qcam committed Feb 8, 2020
1 parent a9ee0dd commit c7e144a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/changeset.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ defmodule Ecto.Changeset do
@spec fetch_change!(t, atom) :: term
def fetch_change!(changeset, key) do
case fetch_change(changeset, key) do
{_, value} ->
{:ok, value} ->
value

:error ->
Expand Down

0 comments on commit c7e144a

Please sign in to comment.