Skip to content

Commit 781e553

Browse files
committed
chore(lint): relinted
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 2d81244 commit 781e553

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

fmts/yaml_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func TestLoadHTTPBytes(t *testing.T) {
4747
_, err = swag.LoadFromFileOrHTTP(serv.URL)
4848
require.Error(t, err)
4949

50-
ts2 := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
50+
ts2 := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, _ *http.Request) {
5151
rw.WriteHeader(http.StatusOK)
5252
_, _ = rw.Write([]byte("the content"))
5353
}))
@@ -129,10 +129,10 @@ name: a string value
129129
}
130130

131131
func TestLoadStrategy(t *testing.T) {
132-
loader := func(p string) ([]byte, error) {
132+
loader := func(_ string) ([]byte, error) {
133133
return []byte(yamlPetStore), nil
134134
}
135-
remLoader := func(p string) ([]byte, error) {
135+
remLoader := func(_ string) ([]byte, error) {
136136
return []byte("not it"), nil
137137
}
138138

json_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestLoadJSON(t *testing.T) {
3030
require.NoError(t, err)
3131
require.NotNil(t, s)
3232

33-
ts2 := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
33+
ts2 := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, _ *http.Request) {
3434
rw.WriteHeader(http.StatusNotFound)
3535
_, _ = rw.Write([]byte("{}"))
3636
}))
@@ -39,7 +39,7 @@ func TestLoadJSON(t *testing.T) {
3939
require.Error(t, err)
4040
}
4141

42-
var jsonPestoreServer = func(rw http.ResponseWriter, r *http.Request) {
42+
var jsonPestoreServer = func(rw http.ResponseWriter, _ *http.Request) {
4343
rw.WriteHeader(http.StatusOK)
4444
_, _ = rw.Write([]byte(petstoreJSON))
4545
}

loaders.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var (
2121
func init() {
2222
jsonLoader := &loader{
2323
DocLoaderWithMatch: DocLoaderWithMatch{
24-
Match: func(pth string) bool {
24+
Match: func(_ string) bool {
2525
return true
2626
},
2727
Fn: JSONDoc,

0 commit comments

Comments
 (0)