We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92a4f95 commit fb66974Copy full SHA for fb66974
src/eca/config.clj
@@ -27,7 +27,7 @@
27
:index {:ignoreFiles [{:type :gitignore}]}})
28
29
(defn get-env [env] (System/getenv env))
30
-(defn get-property [property] (System/getenv property))
+(defn get-property [property] (System/getProperty property))
31
32
(def ^:private ttl-cache-config-ms 5000)
33
@@ -48,7 +48,7 @@
48
(io/file (get-property "user.home") ".config"))
49
config-file (io/file xdg-config-home "eca" "config.json")]
50
(when (.exists config-file)
51
- (safe-read-json-string (slurp config-file)))))
+ (safe-read-json-string (slurp config-file)))))
52
53
(def ^:private config-from-global-file (memoize/ttl config-from-global-file* :ttl/threshold ttl-cache-config-ms))
54
0 commit comments