Skip to content
Snippets Groups Projects
Commit 1b96caa5 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #2114 from metabase/fix-kanye-quotes-loading

use a reader so that we load the data properly out of a jar file.
parents 50d2e660 59741270
Branches
Tags
No related merge requests found
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment