summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-16 13:56:57 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-16 17:27:57 +0530
commit7e2c50762523d8f7f8c8b027baab67d03a7bc99c (patch)
treea4aff42c771ffacc3620f77eec58dbf701e5d8b2
parent1f3d9524ca64a07f419dd47840cdf84b32e9e857 (diff)
db/account: avoid unnecessary validator call
-rw-r--r--db/account.go3
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
}