mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

AssertTrue and AssertFalse use copyToInterface to copy msg. This is unnecessary, cause we know the msgAndArgs param of assert.Equal is variadic: func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool This patch removes copyToInterface function, and use msg directly. Signed-off-by: Jes Cok <xigua67damn@gmail.com>