feat: linting fixes
This commit is contained in:
parent
c2101a4fbb
commit
82c9581727
@ -1,8 +1,9 @@
|
||||
package proxyd
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestStripXFF(t *testing.T) {
|
||||
|
@ -115,6 +115,7 @@ func StartPProf(hostname string, port int) *http.Server {
|
||||
Addr: addr,
|
||||
}
|
||||
|
||||
// nolint:errcheck
|
||||
go srv.ListenAndServe()
|
||||
|
||||
return srv
|
||||
|
@ -1,10 +1,11 @@
|
||||
package proxyd
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/require"
|
||||
"io"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestLimitReader(t *testing.T) {
|
||||
|
@ -573,7 +573,7 @@ func (s *Server) handleBatchRPC(ctx context.Context, reqs []json.RawMessage, isL
|
||||
}
|
||||
|
||||
servedByString := ""
|
||||
for sb, _ := range servedBy {
|
||||
for sb := range servedBy {
|
||||
if servedByString != "" {
|
||||
servedByString += ", "
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user