Skip to content

Commit c076706

Browse files
committed
code optimization
1 parent 2b33151 commit c076706

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

unsafe_iface.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,5 @@ func (type2 *UnsafeIFaceType) UnsafeIsNil(ptr unsafe.Pointer) bool {
5757
return true
5858
}
5959
iface := (*iface)(ptr)
60-
if iface.itab == nil {
61-
return true
62-
}
63-
return false
60+
return iface.itab == nil
6461
}

0 commit comments

Comments
 (0)