From eaaff76aadaee5b154440908fc855eac685982d1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 10 Jul 2024 13:27:12 +0200 Subject: [PATCH] :bug: Fix exception on clj-kondo extension hook fn The exception is hidden on normal cli invocatin of clj-kondo and hapens when component with empty params is defined. --- .clj-kondo/hooks/export.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clj-kondo/hooks/export.clj b/.clj-kondo/hooks/export.clj index c4017cc2f..50e617de5 100644 --- a/.clj-kondo/hooks/export.clj +++ b/.clj-kondo/hooks/export.clj @@ -141,7 +141,7 @@ result (api/list-node (into [(api/token-node 'defn) cname - (api/vector-node (into [param1] paramN))] + (api/vector-node (filter some? (cons param1 paramN)))] (cons mdata body)))] ;; (prn (api/sexpr result))