We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28db06c commit 5680354Copy full SHA for 5680354
controller.go
@@ -225,8 +225,8 @@ type controller struct {
225
// MiddlewareController will return the speakeasy middleware controller from the current request,
226
// if the current request is monitored by the speakeasy middleware.
227
func MiddlewareController(r *http.Request) (*controller, bool) {
228
- c, ok := r.Context().Value(controllerKey).(*controller)
229
- return c, ok
+ c, _ := r.Context().Value(controllerKey).(*controller)
+ return c, c != nil
230
}
231
232
// PathHint will allow you to provide a path hint for the current request.
0 commit comments