mirror of
https://github.com/penpot/penpot.git
synced 2026-03-22 18:33:45 +00:00
🔥 Remove unreachable code.
This commit is contained in:
committed by
Alonso Torres
parent
bfb23ad60b
commit
6461ebe2b8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user