Skip to content

Commit

Permalink
Appease kondo
Browse files Browse the repository at this point in the history
  • Loading branch information
crisptrutski committed May 24, 2024
1 parent 6c6d798 commit fefb3e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/macaw/rewrite.clj
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
[]))))

(defn- rename-table
[updated-nodes table-renames schema-renames known-tables ^Table t _ctx]
[updated-nodes table-renames schema-renames known-tables ^Table t opts]
(when-let [rename (u/find-relevant table-renames (get known-tables t) [:table :schema])]
(vswap! updated-nodes conj [t rename])
(.setName t (val rename)))
(let [schema-name (collect/normalize-reference (.getSchemaName t) _ctx)]
(let [schema-name (collect/normalize-reference (.getSchemaName t) opts)]
(when-let [schema-rename (find schema-renames schema-name)]
(vswap! updated-nodes conj [schema-name schema-rename])
(.setSchemaName t (val schema-rename)))))
Expand Down
1 change: 0 additions & 1 deletion test/macaw/core_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(ns ^:parallel macaw.core-test
(:require
[clojure.string :as str]
[clojure.test :refer [deftest is testing]]
[macaw.core :as m]
[macaw.test.util :refer [ws=]]
Expand Down

0 comments on commit fefb3e1

Please sign in to comment.