Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
johantonelli committed Dec 11, 2024
1 parent 87adae3 commit 857e0f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/clj/xt_play/transactions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
3 changes: 1 addition & 2 deletions src/cljs/xt_play/components/editor.cljs
Original file line number Diff line number Diff line change
@@ -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]]
Expand Down
5 changes: 2 additions & 3 deletions test/clj/xt_play/integration_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 857e0f4

Please sign in to comment.