Skip to content

Commit

Permalink
use a reader so that we load the data properly out of a jar file.
Browse files Browse the repository at this point in the history
  • Loading branch information
agilliland committed Mar 9, 2016
1 parent 1edd555 commit 5974127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metabase/metabot.clj
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@

(def ^:private kanye-quotes
(delay (log/debug "Loading kanye quotes...")
(when-let [file (io/file (io/resource "kanye-quotes.edn"))]
(edn/read-string (slurp file)))))
(when-let [data (slurp (io/reader (io/resource "kanye-quotes.edn")))]
(edn/read-string data))))

(defn ^:metabot ^:unlisted kanye
"Implementation of the `metabot kanye` command."
Expand Down

0 comments on commit 5974127

Please sign in to comment.