Skip to content

Commit

Permalink
refactor reprint selection
Browse files Browse the repository at this point in the history
  • Loading branch information
retrogradeorbit committed Jun 23, 2020
1 parent 4db550a commit 0173ae8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/clj/spire/output/default.clj
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,12 @@
(drop-while #(<= (:first-row %) first-row))
(map
(fn [{:keys [form file meta line] :as data}]
(first
(filter identity
(for [l new-log]
(when (and (= form (:form l))
(= file (:file l))
(= meta (:meta l))
(= line (:line l)))
l)))))))]
;; find new-log that matches and return that
(->> new-log
(filter
#(= (select-keys % [:form :file :meta :line])
(select-keys data [:form :file :meta :line])))
first))))]
(doseq [a after]
(print-state a))))

Expand Down

0 comments on commit 0173ae8

Please sign in to comment.