Skip to content

Commit f89af5d

Browse files
committed
update TypeOf function code
1 parent 94dcab5 commit f89af5d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tt.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ func BM(b *testing.B, fn func()) {
7777

7878
// TypeOf equal two interface{} type
7979
func TypeOf(expect, actual interface{}) bool {
80-
if reflect.TypeOf(expect) == reflect.TypeOf(actual) {
81-
return true
82-
}
83-
return false
80+
return reflect.TypeOf(expect) == reflect.TypeOf(actual)
8481
}
8582

8683
// IsType asserts that two objects type are equal

0 commit comments

Comments
 (0)