Skip to content

Commit

Permalink
Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wardle committed Sep 19, 2023
1 parent 7112aba commit 1c7f994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/com/eldrix/hermes/cmd/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
(doseq [distribution dist]
(when-let [unzipped-path (download/download distribution (dissoc opts :dist))]
(import-from opts [(.toString unzipped-path)])))
(catch ExceptionInfo e ;; we only try to carry on iff there are specification errors on import
(catch ExceptionInfo e ;; we only try to carry on iff there are specification errors on import
(let [exd (ex-data e)]
(if (contains? exd :clojure.spec.alpha/problems)
((expound/custom-printer {:print-specs? false :theme :figwheel-theme}) exd)
Expand Down Expand Up @@ -110,7 +110,7 @@
(str/join \newline)))
([options-summary cmds]
(let [n (count cmds), cmds' (map cli/commands cmds) ;; get information about each command requested
{cmd-usage :usage cmd :cmd desc :desc} (first cmds')] ;; handle case of one command specially
{cmd-usage :usage cmd :cmd desc :desc} (first cmds')] ;; handle case of one command specially
(->> [(str "Usage: hermes [options] " (if (= 1 n) (or cmd-usage cmd) (str/join " " cmds)))
""
(if (= 1 n) desc (str/join \newline (map cli/format-command cmds')))
Expand Down

0 comments on commit 1c7f994

Please sign in to comment.