Skip to content

Commit ebd4722

Browse files
committed
Trival refactoring
1 parent c5e7522 commit ebd4722

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/refactor_nrepl/core.clj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
(defn ns-from-string
2626
"Retrieve the symbol naming the ns from file-content."
2727
[file-content]
28-
(second (parse/read-ns-decl (PushbackReader. (java.io.StringReader. file-content)))))
28+
(-> file-content
29+
java.io.StringReader.
30+
PushbackReader.
31+
parse/read-ns-decl
32+
second))
2933

3034
(defn ns-name-from-readable
3135
"Call slurp on readable and extract the ns-name from the content."

0 commit comments

Comments
 (0)