We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94dcab5 commit f89af5dCopy full SHA for f89af5d
tt.go
@@ -77,10 +77,7 @@ func BM(b *testing.B, fn func()) {
77
78
// TypeOf equal two interface{} type
79
func TypeOf(expect, actual interface{}) bool {
80
- if reflect.TypeOf(expect) == reflect.TypeOf(actual) {
81
- return true
82
- }
83
- return false
+ return reflect.TypeOf(expect) == reflect.TypeOf(actual)
84
}
85
86
// IsType asserts that two objects type are equal
0 commit comments