Permalink
Browse files

simplify apply usage

  • Loading branch information...
1 parent 9ab692b commit bf62176cb58a31398d714a60e7fcc66ed72a9738 @mikaraento committed Oct 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/clojure/clojure/tools/namespace/repl.clj
View
4 src/main/clojure/clojure/tools/namespace/repl.clj
@@ -71,7 +71,7 @@
The directories to be scanned are controlled by 'set-refresh-dirs';
defaults to all directories on the Java classpath."
[]
- (do-refresh #(apply dir/scan (concat [%] refresh-dirs))))
+ (do-refresh #(apply dir/scan % refresh-dirs)))
(defn refresh-all
"Scans source code directories for all Clojure source files and
@@ -80,7 +80,7 @@
The directories to be scanned are controlled by 'set-refresh-dirs';
defaults to all directories on the Java classpath."
[]
- (do-refresh #(apply dir/scan-all (concat [%] refresh-dirs))))
+ (do-refresh #(apply dir/scan-all % refresh-dirs)))
(defn set-refresh-dirs
"Sets the directories which are scanned by 'refresh'. Supports the

0 comments on commit bf62176

Please sign in to comment.