Skip to content

Commit

Permalink
propagate request to next handler if given newrelic app is nil. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mesuutt authored Sep 13, 2023
1 parent 626da9d commit f8003fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nrfiber.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func FromContext(c *fiber.Ctx) *newrelic.Transaction {
func Middleware(app *newrelic.Application, configs ...*config) fiber.Handler {
if nil == app {
return func(c *fiber.Ctx) error {
return nil
return c.Next()
}
}

Expand Down

0 comments on commit f8003fd

Please sign in to comment.