fix: rename unused parameter to underscore in test

This commit is contained in:
liuyuyan2717 2026-08-29 17:58:30 +08:00
parent c7a67900ae
commit a21dccc276

View File

@ -11,7 +11,7 @@ func TestHandleMethodNotAllowedSkippedNodesPanic(t *testing.T) {
router := New()
router.HandleMethodNotAllowed = true
h := func(c *Context) {}
h := func(_ *Context) {}
router.OPTIONS("/:p0/:p1/a/:p2", h)
router.GET("/:p0/:p1/a/:p2", h)
router.PATCH("/b/:p0/:p1/c", h)