Skip to content

Commit db5c272

Browse files
author
Nikita Koryabkin
committed
fix
1 parent e179163 commit db5c272

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

expectations.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -339,21 +339,6 @@ type queryBasedExpectation struct {
339339
args []driver.Value
340340
}
341341

342-
func (e *queryBasedExpectation) attemptArgMatch(args []namedValue) (err error) {
343-
// catch panic
344-
defer func() {
345-
if e := recover(); e != nil {
346-
_, ok := e.(error)
347-
if !ok {
348-
err = fmt.Errorf(e.(string))
349-
}
350-
}
351-
}()
352-
353-
err = e.argsMatches(args)
354-
return
355-
}
356-
357342
// ExpectedPing is used to manage *sql.DB.Ping expectations.
358343
// Returned by *Sqlmock.ExpectPing.
359344
type ExpectedPing struct {

0 commit comments

Comments
 (0)