Revert "diffArguments: remove unnecessary range-for (#417)"

This reverts commit 5c861cc4a4.

Bug was already fixed in another merge.
pull/441/head
Ernesto Jiménez 2017-05-26 07:46:34 +01:00
parent 2b76a9702e
commit 34687ebd28
1 changed files with 1 additions and 5 deletions

View File

@ -718,11 +718,7 @@ func typeAndKind(v interface{}) (reflect.Type, reflect.Kind) {
}
func diffArguments(expected Arguments, actual Arguments) string {
if diffString := diff(expected, actual); diffString != "" {
return fmt.Sprintf("Difference found in arguments:\n\n%s", diffString)
}
if len(expected) != len(actual) {
if len(expected) != len(actual) {
return fmt.Sprintf("Provided %v arguments, mocked for %v arguments", len(expected), len(actual))
}