Skip to content

Commit

Permalink
fix: check for error
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Apr 10, 2024
1 parent b293359 commit 856ab45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ func LoadConfigFS(fsys afero.Fs) error {
if Config.Auth.Hook.SendSMS.URI == "" {
return errors.New("Missing required field in config: auth.hook.send_sms.uri")
}
if validateHTTPHookURI(Config.Auth.Hook.SendSMS.URI, "send_sms"); err != nil {
if err := validateHTTPHookURI(Config.Auth.Hook.SendSMS.URI, "send_sms"); err != nil {
return err
}
if Config.Auth.Hook.SendSMS.HTTPHookSecrets == "" {
Expand All @@ -693,7 +693,7 @@ func LoadConfigFS(fsys afero.Fs) error {
if Config.Auth.Hook.SendEmail.URI == "" {
return errors.New("Missing required field in config: auth.hook.send_email.uri")
}
if validateHTTPHookURI(Config.Auth.Hook.SendEmail.URI, "send_email"); err != nil {
if err := validateHTTPHookURI(Config.Auth.Hook.SendEmail.URI, "send_email"); err != nil {
return err
}
if Config.Auth.Hook.SendEmail.HTTPHookSecrets == "" {
Expand Down

0 comments on commit 856ab45

Please sign in to comment.