Skip to content

Commit

Permalink
reduce context struct size from 216 bytes to 208 bytes (#912)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Burr <[email protected]>
  • Loading branch information
juburr and juburr authored May 7, 2024
1 parent c1f2a7a commit ef31c0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ type Context struct {
// patterns across a stack of sub-routers.
RoutePatterns []string

// methodNotAllowed hint
methodNotAllowed bool
methodsAllowed []methodTyp // allowed methods in case of a 405
methodNotAllowed bool
}

// Reset a routing context to its initial state.
Expand Down

0 comments on commit ef31c0b

Please sign in to comment.