From 7d99b2b43d8f60a8982a78cde6e8bd287dea5da0 Mon Sep 17 00:00:00 2001 From: Arjun Dhawan Date: Sun, 27 Oct 2024 08:07:57 +0100 Subject: [PATCH] attempt 2 --- mock/mock.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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