From 94f305d5ccd08f86c283e14642ab2f0e49b0e64b Mon Sep 17 00:00:00 2001 From: Julien Vincent Date: Tue, 3 Dec 2024 14:59:04 +0000 Subject: [PATCH] Only run operation handler fn if defined --- packages/mallard/src/k16/mallard/executor.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mallard/src/k16/mallard/executor.clj b/packages/mallard/src/k16/mallard/executor.clj index eafc914..c26b1d9 100644 --- a/packages/mallard/src/k16/mallard/executor.clj +++ b/packages/mallard/src/k16/mallard/executor.clj @@ -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")