feat: linting fixes

This commit is contained in:
Jacob Elias 2024-06-11 14:34:44 -05:00
parent c2101a4fbb
commit 82c9581727
4 changed files with 6 additions and 3 deletions

@ -1,8 +1,9 @@
package proxyd package proxyd
import ( import (
"github.com/stretchr/testify/assert"
"testing" "testing"
"github.com/stretchr/testify/assert"
) )
func TestStripXFF(t *testing.T) { func TestStripXFF(t *testing.T) {

@ -115,6 +115,7 @@ func StartPProf(hostname string, port int) *http.Server {
Addr: addr, Addr: addr,
} }
// nolint:errcheck
go srv.ListenAndServe() go srv.ListenAndServe()
return srv return srv

@ -1,10 +1,11 @@
package proxyd package proxyd
import ( import (
"github.com/stretchr/testify/require"
"io" "io"
"strings" "strings"
"testing" "testing"
"github.com/stretchr/testify/require"
) )
func TestLimitReader(t *testing.T) { func TestLimitReader(t *testing.T) {

@ -573,7 +573,7 @@ func (s *Server) handleBatchRPC(ctx context.Context, reqs []json.RawMessage, isL
} }
servedByString := "" servedByString := ""
for sb, _ := range servedBy { for sb := range servedBy {
if servedByString != "" { if servedByString != "" {
servedByString += ", " servedByString += ", "
} }