From a21dccc2765ae0554cdbd9c327877c38da055ca1 Mon Sep 17 00:00:00 2001 From: liuyuyan2717 Date: Sat, 29 Aug 2026 17:58:30 +0800 Subject: [PATCH] fix: rename unused parameter to underscore in test --- gin_test_issue_4818.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin_test_issue_4818.go b/gin_test_issue_4818.go index 836f24c1..12fa2a8e 100644 --- a/gin_test_issue_4818.go +++ b/gin_test_issue_4818.go @@ -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)