diff options
author | 2023-06-03 13:58:57 +0200 | |
---|---|---|
committer | 2023-06-03 13:58:57 +0200 | |
commit | 21c1552daafbcedbd2e19b0c155ff8db9cff2be0 (patch) | |
tree | 00d945280a72d30d51acb618ad7257432d1f9e1a /internal/api/client/accounts | |
parent | [bugfix] Fix first item of thread dereferencing always being skipped (#1858) (diff) | |
download | gotosocial-21c1552daafbcedbd2e19b0c155ff8db9cff2be0.tar.xz |
[chore] Update versions, fix lint errors (#1860)
Diffstat (limited to 'internal/api/client/accounts')
-rw-r--r-- | internal/api/client/accounts/accountcreate.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/api/client/accounts/accountcreate.go b/internal/api/client/accounts/accountcreate.go index 6af3b41e5..5999c46c1 100644 --- a/internal/api/client/accounts/accountcreate.go +++ b/internal/api/client/accounts/accountcreate.go @@ -141,9 +141,5 @@ func validateCreateAccount(form *apimodel.AccountCreateRequest) error { return err } - if err := validate.SignUpReason(form.Reason, config.GetAccountsReasonRequired()); err != nil { - return err - } - - return nil + return validate.SignUpReason(form.Reason, config.GetAccountsReasonRequired()) } |