minor bug.

This commit is contained in:
2022-03-21 09:08:04 -07:00
parent 666fd40bce
commit 7ba2d68b28

View File

@@ -68,13 +68,15 @@
["98000 Other Expenses" 98000 98999]]})
(defn in-range? [code]
(reduce
(fn [acc [start end]]
(if (<= start code end)
(reduced true)
acc))
false
(vals ranges)))
(if code
(reduce
(fn [acc [start end]]
(if (<= start code end)
(reduced true)
acc))
false
(vals ranges))
false))
(defn locations [data]
(->> data