11package httpexpect
22
33import (
4- "fmt"
54 "testing"
65
76 "github.com/stretchr/testify/assert"
@@ -21,7 +20,7 @@ func NewAssertReporter(t assert.TestingT) *AssertReporter {
2120
2221// Errorf implements Reporter.Errorf.
2322func (r * AssertReporter ) Errorf (message string , args ... interface {}) {
24- r .backend .Fail (fmt . Sprintf ( message , args ... ) )
23+ r .backend .Fail (message , args ... )
2524}
2625
2726// RequireReporter implements Reporter interface using `testify/require'
@@ -37,7 +36,7 @@ func NewRequireReporter(t require.TestingT) *RequireReporter {
3736
3837// Errorf implements Reporter.Errorf.
3938func (r * RequireReporter ) Errorf (message string , args ... interface {}) {
40- r .backend .FailNow (fmt . Sprintf ( message , args ... ) )
39+ r .backend .FailNow (message , args ... )
4140}
4241
4342// FatalReporter is a struct that implements the Reporter interface
@@ -47,8 +46,8 @@ type FatalReporter struct {
4746}
4847
4948// NewFatalReporter returns a new FatalReporter object.
50- func NewFatalReporter (backend testing.TB ) * FatalReporter {
51- return & FatalReporter {backend }
49+ func NewFatalReporter (t testing.TB ) * FatalReporter {
50+ return & FatalReporter {t }
5251}
5352
5453// Errorf implements Reporter.Errorf.
0 commit comments