From 857e0f41f7c2d10222407be5ecd7d3fed6f5b3ca Mon Sep 17 00:00:00 2001 From: Johanna Antonelli Date: Tue, 10 Dec 2024 15:00:49 +0000 Subject: [PATCH] Fix lint --- src/clj/xt_play/transactions.clj | 1 - src/cljs/xt_play/components/editor.cljs | 3 +-- test/clj/xt_play/integration_test.clj | 5 ++--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/clj/xt_play/transactions.clj b/src/clj/xt_play/transactions.clj index 15df838..01ec08f 100644 --- a/src/clj/xt_play/transactions.clj +++ b/src/clj/xt_play/transactions.clj @@ -56,7 +56,6 @@ (xtdb/submit! node txs {:system-time system-time}))) (log/info tx-type "running query:" query) (let [res (xtdb/query node query)] - (def res res) (log/info tx-type "XTDB query response:" res) res)) diff --git a/src/cljs/xt_play/components/editor.cljs b/src/cljs/xt_play/components/editor.cljs index b1f21c3..1f41ee0 100644 --- a/src/cljs/xt_play/components/editor.cljs +++ b/src/cljs/xt_play/components/editor.cljs @@ -1,6 +1,5 @@ (ns xt-play.components.editor - (:require ["@codemirror/autocomplete" :refer [autocompletion]] - ["@codemirror/commands" :refer [defaultKeymap history historyKeymap indentWithTab]] + (:require ["@codemirror/commands" :refer [defaultKeymap history historyKeymap indentWithTab]] ["@codemirror/language" :refer [foldGutter syntaxHighlighting defaultHighlightStyle]] ["@codemirror/lang-sql" :refer [sql PostgreSQL]] ["@codemirror/state" :refer [EditorState]] diff --git a/test/clj/xt_play/integration_test.clj b/test/clj/xt_play/integration_test.clj index 1bcefcb..57d1c4d 100644 --- a/test/clj/xt_play/integration_test.clj +++ b/test/clj/xt_play/integration_test.clj @@ -97,7 +97,7 @@ (t/testing "execute payload is not mutated" (let [txs (atom [])] - (with-redefs [jdbc/execute! (fn [_conn statement & args] + (with-redefs [jdbc/execute! (fn [_conn statement & _args] (swap! txs conj statement))] (h/run-handler (t-file "beta-sql-example-request")) (t/is @@ -108,8 +108,7 @@ (t/testing "xt submit-tx sql payload is reformatted" (let [txs (atom [])] - (def txs txs) - (with-redefs [xt/submit-tx (fn [_node tx & args] + (with-redefs [xt/submit-tx (fn [_node tx & _args] (swap! txs conj tx))] (h/run-handler (t-file "sql-example-request")) (t/is