zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6e8ff65bbcdc607d14c508512ed107b1173ea5af
parent 55a4367e799efd9ed90a49fdbd8306cdd6004da0
Author: srfsh <dev@srf.sh>
Date:   Thu, 15 Dec 2022 18:32:17 +0300

Zenflows.VF.Proposal.Domain: simplify status clauses

Diffstat:
Msrc/zenflows/vf/proposal/domain.ex | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/zenflows/vf/proposal/domain.ex b/src/zenflows/vf/proposal/domain.ex @@ -62,10 +62,10 @@ def status(id) do nil -> {:error, "not found"} {true, _, 0} -> {:ok, :refused} - {_, intents, satisfactions} when intents != satisfactions -> - {:ok, :pending} {_, intents, satisfactions} when intents == satisfactions -> {:ok, :accepted} + _ -> + {:ok, :pending} end end