0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🔥 Remove unreachable code.

This commit is contained in:
Andrey Antukh 2022-02-03 14:10:32 +01:00 committed by Alonso Torres
parent bfb23ad60b
commit 6461ebe2b8

View file

@ -32,14 +32,10 @@
(defn- validate
[data]
(let [password (:password data)
terms-privacy (:terms-privacy data)]
(let [password (:password data)]
(cond-> {}
(> 8 (count password))
(assoc :password {:message "errors.password-too-short"})
(and (not terms-privacy) false)
(assoc :terms-privacy {:message "errors.terms-privacy-agreement-invalid"}))))
(assoc :password {:message "errors.password-too-short"}))))
(s/def ::fullname ::us/not-empty-string)
(s/def ::password ::us/not-empty-string)