Skip to content

Commit ef31c0b

Browse files
authored
reduce context struct size from 216 bytes to 208 bytes (#912)
Co-authored-by: Justin Burr <[email protected]>
1 parent c1f2a7a commit ef31c0b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

context.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,8 @@ type Context struct {
7474
// patterns across a stack of sub-routers.
7575
RoutePatterns []string
7676

77-
// methodNotAllowed hint
78-
methodNotAllowed bool
7977
methodsAllowed []methodTyp // allowed methods in case of a 405
78+
methodNotAllowed bool
8079
}
8180

8281
// Reset a routing context to its initial state.

0 commit comments

Comments
 (0)