From f5bb0fa45fccdefe74cee4392c59869f220727da Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 13 Feb 2024 19:58:24 -0500 Subject: [PATCH] chore: remove un-used function --- account/account.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/account/account.go b/account/account.go index 985fec7..9bc2f86 100644 --- a/account/account.go +++ b/account/account.go @@ -294,10 +294,3 @@ func (s *AccountServiceDefault) exists(model interface{}, conditions map[string] return exists, model, result.Error } - -func validateName(firstName, lastName string) error { - if len(firstName) == 0 || len(lastName) == 0 { - return errors.New("first name and last name cannot be empty") - } - return nil -}