Review comment: be more strict in lookup-ref?.

This commit is contained in:
Nick Alexander 2016-08-04 14:45:41 -07:00
parent 44db8116bf
commit 5ece60e3e9

View file

@ -644,8 +644,11 @@
(->> (update-txInstant db*)))))
(defn- lookup-ref? [x]
"Return true if `x` is like [:attr value]."
(and (sequential? x)
(= (count x) 2)))
(= (count x) 2)
(or (keyword? (first x))
(integer? (first x)))))
(defn <?run
"Execute the provided query on the provided DB.