diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-16 13:56:57 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-16 17:27:57 +0530 |
commit | 7e2c50762523d8f7f8c8b027baab67d03a7bc99c (patch) | |
tree | a4aff42c771ffacc3620f77eec58dbf701e5d8b2 /db | |
parent | 1f3d9524ca64a07f419dd47840cdf84b32e9e857 (diff) |
db/account: avoid unnecessary validator call
Diffstat (limited to 'db')
-rw-r--r-- | db/account.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/db/account.go b/db/account.go index 6bf4239..0668016 100644 --- a/db/account.go +++ b/db/account.go @@ -34,9 +34,6 @@ func (ac *Account) CreateAccount(safe *SafeDB) error { ` err := safe.validate.Struct(ac) - if err == nil { - err = safe.validate.Struct(ac.Login) - } if err != nil { return err } |