Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge authored May 8, 2024
1 parent 476cf01 commit 2795fcf
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 @@ -470,14 +470,14 @@ func (h *hookConfig) HandleHook(hookType string) error {
return nil
}
if h.URI == "" {
return fmt.Errorf("missing required field in config: auth.hook.%s.uri", hookType)
return errors.Errorf("missing required field in config: auth.hook.%s.uri", hookType)
}
if err := validateHookURI(h.URI, hookType); err != nil {
return err
}
var err error
if h.Secrets, err = maybeLoadEnv(h.Secrets); err != nil {
return fmt.Errorf("missing required field in config: auth.hook.%s.secrets", hookType)
return errors.Errorf("missing required field in config: auth.hook.%s.secrets", hookType)
}
return nil
}
Expand Down

0 comments on commit 2795fcf

Please sign in to comment.