Skip to content

Commit 1641730

Browse files
committed
Reused cljr--string-present-p
Using it in a few more places
1 parent e812312 commit 1641730

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clj-refactor.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-update-project-d
22632263
(unless (looking-at "\s*?$")
22642264
(newline))
22652265
(indent-region fn-start (cljr--point-after 'paredit-forward-up)))
2266-
(when (not (or (null locals) (string= "" locals)))
2266+
(when (cljr--string-present-p locals)
22672267
(insert (format "(partial %s)" locals))
22682268
(backward-char (length (concat " " locals ")"))))
22692269
(if name
@@ -3206,7 +3206,7 @@ See: https://github.com/clojure-emacs/clj-refactor.el/wiki/cljr-create-fn-from-e
32063206

32073207
(:else sexp-forms*))))
32083208
(prefix (cljr--symbol-prefix symbol-at-point))
3209-
(path (when (not (or (null prefix) (string= "" prefix)))
3209+
(path (when (cljr--string-present-p prefix)
32103210
(cljr--ns-path (cljr--resolve-alias prefix)))))
32113211
(push-mark)
32123212
(if (cljr--symbolp symbol-at-point)

0 commit comments

Comments
 (0)