Skip to content

Commit

Permalink
remove mute conversion from Router to *Mux (#863)
Browse files Browse the repository at this point in the history
Co-authored-by: TheRandomCharacter <[email protected]>
  • Loading branch information
TheRandomCharacter and TheRandomCharacter authored Oct 18, 2023
1 parent 1129e36 commit f250983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (mx *Mux) With(middlewares ...func(http.Handler) http.Handler) Router {
// for a group of handlers along the same routing path that use an additional
// set of middlewares. See _examples/.
func (mx *Mux) Group(fn func(r Router)) Router {
im := mx.With().(*Mux)
im := mx.With()
if fn != nil {
fn(im)
}
Expand Down

0 comments on commit f250983

Please sign in to comment.