Skip to content

Commit

Permalink
Remove error short circuiting before fn evaluation
Browse files Browse the repository at this point in the history
fns can deal with errors themeselves
  • Loading branch information
prabhanshuguptagit committed Jun 7, 2024
1 parent 0a7551a commit 150b47f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bean/interpreter.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@

(defn apply-f [sheet f asts]
(let [args (eval-asts sheet asts)]
(if-let [error (first-error args)]
error
(apply-f-args sheet f args asts))))
(apply-f-args sheet f args asts)))

(defn eval-cell [cell sheet]
(-> (eval-ast (:ast cell) sheet)
Expand Down

0 comments on commit 150b47f

Please sign in to comment.