From 14fd129b90213b0260772169108d6526120c4ee2 Mon Sep 17 00:00:00 2001 From: Saksham Arya Date: Mon, 30 Jun 2025 15:25:44 +0530 Subject: [PATCH] fix lint --- context.go | 1 - context_test.go | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/context.go b/context.go index d5b1cd27..66478c09 100644 --- a/context.go +++ b/context.go @@ -22,7 +22,6 @@ import ( "time" "github.com/gin-contrib/sse" - "github.com/gin-gonic/gin/binding" "github.com/gin-gonic/gin/render" ) diff --git a/context_test.go b/context_test.go index 23069b6c..4775b218 100644 --- a/context_test.go +++ b/context_test.go @@ -27,13 +27,12 @@ import ( "time" "github.com/gin-contrib/sse" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "google.golang.org/protobuf/proto" - "github.com/gin-gonic/gin/binding" "github.com/gin-gonic/gin/codec/json" testdata "github.com/gin-gonic/gin/testdata/protoexample" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "google.golang.org/protobuf/proto" ) var _ context.Context = (*Context)(nil) @@ -3448,7 +3447,7 @@ func TestParallelHeaderAccess(t *testing.T) { wg.Add(1) go func() { defer wg.Done() - for _ = range iterations { + for range iterations { c.Header("key", "value") } }() @@ -3457,7 +3456,7 @@ func TestParallelHeaderAccess(t *testing.T) { wg.Add(1) go func() { defer wg.Done() - for _ = range iterations { + for range iterations { _ = c.GetHeader("key") } }()