From 2eab70bbe69c44a28a40e9e8aa690b378a2b90ce Mon Sep 17 00:00:00 2001 From: Mike Thompson Date: Sun, 12 Apr 2026 15:53:16 +1000 Subject: [PATCH] Fix unreachable code warning in validate-inputs The doseq macro expands into a loop with recur, so a throw in the body makes the continuation unreachable. Replace with some + throw to avoid the Closure Compiler advanced-compilation warning. Fixes #827 Co-Authored-By: Claude Opus 4.6 (1M context) --- src/re_frame/flow/alpha.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/re_frame/flow/alpha.cljc b/src/re_frame/flow/alpha.cljc index 6e511480..8f89d6cc 100644 --- a/src/re_frame/flow/alpha.cljc +++ b/src/re_frame/flow/alpha.cljc @@ -60,8 +60,9 @@ flows)) (defn validate-inputs [{:keys [inputs]}] - (doseq [[_ input] inputs - :when (not ((some-fn db-path? flow<-?) input))] + (when (some (fn [[_ input]] + (not ((some-fn db-path? flow<-?) input))) + inputs) (throw (#?(:clj Exception. :cljs js/Error.) "bad input")))) (defn warn-stale-dependencies [flows new-flow]