Skip to content

Commit

Permalink
Trival refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
expez committed Jun 29, 2021
1 parent c5e7522 commit ebd4722
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/refactor_nrepl/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@
(defn ns-from-string
"Retrieve the symbol naming the ns from file-content."
[file-content]
(second (parse/read-ns-decl (PushbackReader. (java.io.StringReader. file-content)))))
(-> file-content
java.io.StringReader.
PushbackReader.
parse/read-ns-decl
second))

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

0 comments on commit ebd4722

Please sign in to comment.