Skip to content

Commit 4c74c43

Browse files
committed
Remove deadcode.
1 parent a545362 commit 4c74c43

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

mock.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ func match(actual, expected interface{}) bool {
139139
}
140140
}
141141
}
142-
143-
return false
144142
}
145143

146144
// Slice is a helper to define AnyIfType arguments for slices and their elements.

mock_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ func TestCall(t *testing.T) {
549549
i, vals := 0, []int{1, 2}
550550
m.When("FuncNoArgs").Call(func() int {
551551
ret := vals[i]
552-
i += 1
552+
i++
553553
return ret
554554
}).Times(2)
555555
m.When("FuncWithArgs", 1, "string").Call(func(a int, b string) (int, string) {

0 commit comments

Comments
 (0)