Skip to content

Commit fb66974

Browse files
committed
Fix global config load
1 parent 92a4f95 commit fb66974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/eca/config.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
:index {:ignoreFiles [{:type :gitignore}]}})
2828

2929
(defn get-env [env] (System/getenv env))
30-
(defn get-property [property] (System/getenv property))
30+
(defn get-property [property] (System/getProperty property))
3131

3232
(def ^:private ttl-cache-config-ms 5000)
3333

@@ -48,7 +48,7 @@
4848
(io/file (get-property "user.home") ".config"))
4949
config-file (io/file xdg-config-home "eca" "config.json")]
5050
(when (.exists config-file)
51-
(safe-read-json-string (slurp config-file)))))
51+
(safe-read-json-string (slurp config-file)))))
5252

5353
(def ^:private config-from-global-file (memoize/ttl config-from-global-file* :ttl/threshold ttl-cache-config-ms))
5454

0 commit comments

Comments
 (0)