Skip to content

Commit

Permalink
fix: guard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mujahed-odeh committed Aug 6, 2023
1 parent c48681b commit 629e3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/firestore/repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ defmodule Firestore.Repo do
end
end

defp should_mask?(keyword, opts) when Enum.empty?(opts), do: keyword
defp should_mask?(keyword, opts) when opts == [], do: keyword

defp should_mask?(keyword, opts),
do: Keyword.put(keyword, :"updateMask.fieldPaths", opts[:fields])
Expand Down

0 comments on commit 629e3d9

Please sign in to comment.