Skip to content

Commit

Permalink
Update middleware.go
Browse files Browse the repository at this point in the history
  • Loading branch information
samber authored Sep 17, 2024
1 parent bf0203e commit 6cddf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func NewWithConfig(logger *slog.Logger, config Config) fiber.Handler {

err := c.Next()
if err != nil {
if err := errHandler(c, err); err != nil {
if err = errHandler(c, err); err != nil {
_ = c.SendStatus(fiber.StatusInternalServerError) //nolint:errcheck
}
}
Expand Down

0 comments on commit 6cddf0d

Please sign in to comment.