From 7e2c50762523d8f7f8c8b027baab67d03a7bc99c Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 16 Mar 2024 13:56:57 +0530 Subject: db/account: avoid unnecessary validator call --- db/account.go | 3 --- 1 file changed, 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 } -- cgit v1.2.3