Skip to content

Commit

Permalink
Only run operation handler fn if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Dec 3, 2024
1 parent 477be48 commit 94f305d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mallard/src/k16/mallard/executor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
(log/info (str "Executing operation " id " [" direction "]"))

(case direction
:up (run-up! context)
:down (run-down! context))
:up (when run-up! (run-up! context))
:down (when run-down! (run-down! context)))

(log/info "Success")

Expand Down

0 comments on commit 94f305d

Please sign in to comment.