diff --git a/boot/core/src/boot/task_helpers.clj b/boot/core/src/boot/task_helpers.clj index 02baf853..8498c047 100644 --- a/boot/core/src/boot/task_helpers.clj +++ b/boot/core/src/boot/task_helpers.clj @@ -117,14 +117,12 @@ (defmethod sift-action :move [_ _ args] (let [proc #(reduce-kv string/replace % args) - mkreducer (fn [dir] - (fn [xs k v] - (let [k (proc k)] - (assoc xs k (assoc v :path k :dir dir)))))] + reducer (fn [xs k v] + (let [k (proc k)] + (assoc xs k (assoc v :path k))))] (fn [fileset] - (let [dir (#'core/get-add-dir fileset #{:resource})] - (->> (partial reduce-kv (mkreducer dir) {}) - (update-in fileset [:tree])))))) + (->> (partial reduce-kv reducer {}) + (update-in fileset [:tree]))))) (defmethod sift-action :add-jar [v? _ args]