Skip to content

Commit 6b2cdda

Browse files
author
ndr
committed
Quote function strings where possible
1 parent b874af7 commit 6b2cdda

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/lt/plugins/typedclojure.cljs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,23 +220,23 @@
220220
;;; - Find a way to access custom eval results programmatically, in order to
221221
;;; parse and better display them.
222222

223-
(def ns-checker "
224-
(let [_ (require 'clojure.core.typed)
223+
(def ns-checker
224+
(str '(let [t (require 'clojure.core.typed)
225225
check-ns-info (find-var 'clojure.core.typed/check-ns-info)
226-
_ (assert check-ns-info \"clojure.core.typed/check ns-info not found\")
226+
t (assert check-ns-info "clojure.core.typed/check-ns-info not found")
227227
{:keys [delayed-errors]} (check-ns-info)]
228228
(if (seq delayed-errors)
229229
(for [^Exception e delayed-errors]
230230
(let [{:keys [env] :as data} (ex-data e)]
231-
(list (first (clojure.string/split (.getMessage e) #\"\nHint\")) \"\n\"
231+
(list (first (clojure.string/split (.getMessage e) #"\nHint")) "\n"
232232
(if (contains? data :form)
233233
(str (:form data))
234-
0) \"\n\"
235-
(str \"in: \" (:source env)) \" \"
236-
(str \"{line: \" (:line env)) \" \"
237-
(str \"ch: \" (:column env) \"}\") \"\n\"
238-
(str \"namespace: \" (-> env :ns :name str)) \"\n\n\")))
239-
\"No type errors found.\"))")
234+
0) "\n"
235+
(str "in: " (:source env)) " "
236+
(str "{line: " (:line env)) " "
237+
(str "ch: " (:column env) "}") "\n"
238+
(str "namespace: " (-> env :ns :name str)) "\n\n")))
239+
"No type errors found."))))
240240

241241
(cmd/command {:command :typedclojure.check.ns
242242
:desc "Typed Clojure: check namespace"

0 commit comments

Comments
 (0)