Skip to content

Commit

Permalink
keep variadic arg to avoid pointless break
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws committed Feb 20, 2024
1 parent 5529112 commit cb4a291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
//
// CompareValues expects the two values to be of the same underlying type.
// Doing otherwise will result in undefined behavior.
func CompareValues(expect, actual interface{}) error {
func CompareValues(expect, actual interface{}, _ ...interface{}) error {
return deepEqual(reflect.ValueOf(expect), reflect.ValueOf(actual), "<root>")
}

Expand Down

0 comments on commit cb4a291

Please sign in to comment.