Browse code

Small refactor to commandline trimming to avoid runtime errors

Joseph Weston authored on 06/12/2021 03:28:59
Showing 1 changed files
... ...
@@ -46,7 +46,7 @@
46 46
  ::submit-cmd
47 47
  (fn [cofx _]
48 48
   (let [db (cofx :db)
49
-        cmdline (-> db (get-in [:cmdline :current]) trim)
49
+        cmdline (some-> db :cmdline :current trim)
50 50
         not-empty? seq]
51 51
     {:db
52 52
      ; TODO replace this with a "->when" macro so that we