Last active
August 16, 2020 12:34
-
-
Save evilsneer/b3cfa60385c252c1f89be6b5295efb78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn nil-response->bad-request-response [handler] | |
(fn [& args] | |
(let [resp (apply handler args)] | |
(if (some? resp) | |
resp | |
responses/bad-request)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment