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:
parent
bfb23ad60b
commit
6461ebe2b8
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue