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 692826c commit a7af7a4Copy full SHA for a7af7a4
src/clj_commons/ansi.clj
@@ -15,7 +15,7 @@
15
(defn- to-boolean
16
[s]
17
(when s
18
- (= "true" (-> s str/trim str/lower-case))))
+ (-> s str/trim str/lower-case)))
19
20
(def ^:dynamic *color-enabled*
21
"Determines if ANSI colors are enabled; color is a deliberate misnomer, as we lump
@@ -33,9 +33,9 @@
33
The nrepl.core check has been verified to work with Cursive, with `lein repl`, and with `clojure` (or `clj`)."
34
(if (seq (System/getenv "NO_COLOR"))
35
false
36
- (let [flag (to-boolean (System/getProperty "clj-commons.ansi.enabled"))]
+ (let [flag (System/getProperty "clj-commons.ansi.enabled")]
37
(cond
38
- flag flag
+ (some? flag) (to-boolean flag)
39
40
(is-ns-available? 'nrepl.core)
41
true
0 commit comments