Skip to content

Instantly share code, notes, and snippets.

@evilsneer
Last active August 16, 2020 12:34
(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