From 0847dcc9ed8eb8b740de332ee2c5c08fc45c8cca Mon Sep 17 00:00:00 2001 From: Dan Holmsand Date: Tue, 8 Sep 2015 13:23:49 +0200 Subject: [PATCH] more cleanup --- demo/sitetools/core.cljs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/demo/sitetools/core.cljs b/demo/sitetools/core.cljs index b80b8e4..cc564ed 100644 --- a/demo/sitetools/core.cljs +++ b/demo/sitetools/core.cljs @@ -168,17 +168,14 @@ (.' fs mkdirSync d))))) (defn write-file [f content] - (let [fs (js/require "fs")] - (mkdirs f) - (.' fs writeFileSync f content))) + (mkdirs f) + (.' (js/require "fs") writeFileSync f content)) (defn read-file [f] - (let [fs (js/require "fs")] - (.' fs readFileSync f))) + (.' (js/require "fs") readFileSync f)) (defn path-join [& paths] - (let [path (js/require "path")] - (apply (.' path :join) paths))) + (apply (.' (js/require "path") :join) paths)) (defn read-css [] (string/join "\n" (map read-file (:css-infiles @config))))