Skip to content

Commit

Permalink
Remove deprecated z/edn
Browse files Browse the repository at this point in the history
  • Loading branch information
rynkowsg committed Nov 19, 2022
1 parent 1003c67 commit d5bc2f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cljfmt/src/cljfmt/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
zloc)))

(defn- transform [form zf & args]
(z/root (apply zf (z/edn form) args)))
(z/root (apply zf (z/of-node form) args)))

(defn- surrounding? [zloc p?]
(and (p? zloc) (or (nil? (z/left* zloc))
Expand Down Expand Up @@ -344,7 +344,7 @@
([form indents]
(indent form indents {}))
([form indents alias-map]
(let [ns-name (find-namespace (z/edn form))
(let [ns-name (find-namespace (z/of-node form))
sorted-indents (sort-by indent-order indents)]
(transform form edit-all should-indent?
#(indent-line % sorted-indents {:alias-map alias-map
Expand Down

0 comments on commit d5bc2f3

Please sign in to comment.