@@ -576,7 +576,7 @@ func NewBytesResponder(status int, body []byte) Responder {
576
576
// To pass the content of an existing file as body use [File] as in:
577
577
//
578
578
// httpmock.NewJsonResponse(200, httpmock.File("body.json"))
579
- func NewJsonResponse (status int , body any ) (* http.Response , error ) { // nolint: revive
579
+ func NewJsonResponse (status int , body any ) (* http.Response , error ) { //nolint: revive
580
580
encoded , err := json .Marshal (body )
581
581
if err != nil {
582
582
return nil , err
@@ -592,7 +592,7 @@ func NewJsonResponse(status int, body any) (*http.Response, error) { // nolint:
592
592
// To pass the content of an existing file as body use [File] as in:
593
593
//
594
594
// httpmock.NewJsonResponder(200, httpmock.File("body.json"))
595
- func NewJsonResponder (status int , body any ) (Responder , error ) { // nolint: revive
595
+ func NewJsonResponder (status int , body any ) (Responder , error ) { //nolint: revive
596
596
resp , err := NewJsonResponse (status , body )
597
597
if err != nil {
598
598
return nil , err
@@ -616,7 +616,7 @@ func NewJsonResponder(status int, body any) (Responder, error) { // nolint: revi
616
616
// To pass the content of an existing file as body use [File] as in:
617
617
//
618
618
// httpmock.NewJsonResponderOrPanic(200, httpmock.File("body.json"))
619
- func NewJsonResponderOrPanic (status int , body any ) Responder { // nolint: revive
619
+ func NewJsonResponderOrPanic (status int , body any ) Responder { //nolint: revive
620
620
responder , err := NewJsonResponder (status , body )
621
621
if err != nil {
622
622
panic (err )
@@ -631,7 +631,7 @@ func NewJsonResponderOrPanic(status int, body any) Responder { // nolint: revive
631
631
// To pass the content of an existing file as body use [File] as in:
632
632
//
633
633
// httpmock.NewXmlResponse(200, httpmock.File("body.xml"))
634
- func NewXmlResponse (status int , body any ) (* http.Response , error ) { // nolint: revive
634
+ func NewXmlResponse (status int , body any ) (* http.Response , error ) { //nolint: revive
635
635
var (
636
636
encoded []byte
637
637
err error
@@ -655,7 +655,7 @@ func NewXmlResponse(status int, body any) (*http.Response, error) { // nolint: r
655
655
// To pass the content of an existing file as body use [File] as in:
656
656
//
657
657
// httpmock.NewXmlResponder(200, httpmock.File("body.xml"))
658
- func NewXmlResponder (status int , body any ) (Responder , error ) { // nolint: revive
658
+ func NewXmlResponder (status int , body any ) (Responder , error ) { //nolint: revive
659
659
resp , err := NewXmlResponse (status , body )
660
660
if err != nil {
661
661
return nil , err
@@ -679,7 +679,7 @@ func NewXmlResponder(status int, body any) (Responder, error) { // nolint: reviv
679
679
// To pass the content of an existing file as body use [File] as in:
680
680
//
681
681
// httpmock.NewXmlResponderOrPanic(200, httpmock.File("body.xml"))
682
- func NewXmlResponderOrPanic (status int , body any ) Responder { // nolint: revive
682
+ func NewXmlResponderOrPanic (status int , body any ) Responder { //nolint: revive
683
683
responder , err := NewXmlResponder (status , body )
684
684
if err != nil {
685
685
panic (err )
@@ -746,7 +746,7 @@ func (d *dummyReadCloser) Read(p []byte) (n int, err error) {
746
746
747
747
func (d * dummyReadCloser ) Close () error {
748
748
d .setup ()
749
- d .body .Seek (0 , io .SeekEnd ) // nolint: errcheck
749
+ d .body .Seek (0 , io .SeekEnd ) //nolint: errcheck
750
750
return nil
751
751
}
752
752
0 commit comments