From 4d99f70fc338ac5b8fa1648d97a7848b609a5130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20W=C3=B6ginger?= Date: Sat, 31 Aug 2024 12:18:01 +0200 Subject: [PATCH] fixup --- lib/radiator/outline/validations.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/radiator/outline/validations.ex b/lib/radiator/outline/validations.ex index b9e94711..3a0bed27 100644 --- a/lib/radiator/outline/validations.ex +++ b/lib/radiator/outline/validations.ex @@ -84,11 +84,16 @@ defmodule Radiator.Outline.Validations do end end - def validate_prev_node(%Node{uuid: id}, [%Node{prev_id: id} = node | rest_nodes], searched_nodes) do + def validate_prev_node( + %Node{uuid: id}, + [%Node{prev_id: id} = node | rest_nodes], + searched_nodes + ) do validate_prev_node(node, rest_nodes ++ searched_nodes, []) end def validate_prev_node(%Node{}, [], []), do: :ok + def validate_prev_node(%Node{} = prev_node, [node | rest_nodes], search_nodes) do validate_prev_node(prev_node, rest_nodes, [search_nodes | node]) end