zf

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

commit 357a6e2811ffc4fabd31f1e1e6b8111306db3772
parent d84d1cf8b0ea655088c574e4a16cb3db16c7c1c7
Author: srfsh <dev@srf.sh>
Date:   Tue, 22 Nov 2022 14:04:14 +0300

Zenflows.VF.EconomicResource.Domain: add last case to previous check

In trace/2, we try to find an item in a list, which uses a case statement that
doesn't cover everything.  This makes it cover the case where we can't find it.

Diffstat:
Msrc/zenflows/vf/economic_resource/domain.ex | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/zenflows/vf/economic_resource/domain.ex b/src/zenflows/vf/economic_resource/domain.ex @@ -117,6 +117,7 @@ defp trace_depth_first_search(flows, visited, contained, modified, delivered, sa case Enum.split_while(previous, &(&1.id != id)) do {[], right} -> right {left, [found | right]} -> [found | left] ++ right + {left, right} -> left ++ right end _ -> previous