diff --git a/mock/mock.go b/mock/mock.go index 9f24479cd..eb5682df9 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -1227,15 +1227,15 @@ func assertOpts(expected, actual interface{}) (expectedFmt, actualFmt string) { } for i := 0; i < expectedOpts.Len(); i++ { - expectedOpt := expectedOpts.Index(i).Interface() - actualOpt := actualOpts.Index(i).Interface() - if !isFuncSame(expectedFuncs[i], actualFuncs[i]) { expectedFmt = expectedNames[i] actualFmt = actualNames[i] return } + expectedOpt := expectedOpts.Index(i).Interface() + actualOpt := actualOpts.Index(i).Interface() + ot := reflect.TypeOf(expectedOpt) var expectedValues []reflect.Value var actualValues []reflect.Value