Skip to content

Commit 315d517

Browse files
committed
Less parens
Removed the unnecessary parenthesis within thread-last macros
1 parent e0c0ac6 commit 315d517

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clj-refactor.el

+5-5
Original file line numberDiff line numberDiff line change
@@ -1300,19 +1300,19 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-move-form"
13001300
requires)))
13011301
(thread-last filtered-require
13021302
(cljr--slice-at ":as")
1303-
(last)
1304-
(car)
1303+
last
1304+
car
13051305
(replace-regexp-in-string (format target-ns-alias-template ns) "\\1")
1306-
(string-trim))))
1306+
string-trim)))
13071307
(goto-char (point-max))
13081308
(cljr--insert-with-proper-whitespace
13091309
(cljr--remove-references-of-target-ns forms ns target-ns-alias))
13101310
(when requires
13111311
(cljr--insert-in-ns ":require")
13121312
(thread-last (seq-remove (lambda (it) (string-match-p (format target-ns-regexp-template ns) it)) requires)
13131313
(apply #'concat)
1314-
(string-trim)
1315-
(insert))
1314+
string-trim
1315+
insert)
13161316
(cljr-clean-ns))
13171317
(save-buffer))
13181318
(cljr--update-ns-after-moving-fns ns (nreverse names))

0 commit comments

Comments
 (0)