Merge pull request #204 from visibletrap/master

Remove nil argument to where
This commit is contained in:
Michael Blume 2018-02-15 22:51:21 -08:00 committed by GitHub
commit caf904a40d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@
[m pred logic-op]))
(defn where [& args]
(let [[m pred] (prep-where args)]
(let [[m pred] (prep-where (remove nil? args))]
(if (nil? pred)
m
(assoc m :where pred))))