refactor(types): drop guards and clauses that can never succeed
This commit is contained in:
parent
ec6422d450
commit
6a4a99f638
6 changed files with 3 additions and 9 deletions
|
|
@ -59,7 +59,7 @@ defmodule Mv.Membership.Member.Validations.EmailChangePermission do
|
|||
|
||||
# Ash stores actor in changeset.context.private.actor; validation context has .actor; some callsites use context.actor
|
||||
defp resolve_actor(changeset, context) do
|
||||
ctx = changeset.context || %{}
|
||||
ctx = changeset.context
|
||||
|
||||
get_in(ctx, [:private, :actor]) ||
|
||||
Map.get(ctx, :actor) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue