mirror of
https://github.com/samber/lo.git
synced 2025-09-27 04:15:58 +08:00
lint 💄
This commit is contained in:
@@ -25,7 +25,7 @@ func TestIsNil(t *testing.T) {
|
|||||||
var b *bool
|
var b *bool
|
||||||
is.True(IsNil(b))
|
is.True(IsNil(b))
|
||||||
|
|
||||||
var ifaceWithNilValue any = (*string)(nil)
|
var ifaceWithNilValue any = (*string)(nil) //nolint:staticcheck
|
||||||
is.True(IsNil(ifaceWithNilValue))
|
is.True(IsNil(ifaceWithNilValue))
|
||||||
is.False(ifaceWithNilValue == nil) //nolint:staticcheck
|
is.False(ifaceWithNilValue == nil) //nolint:staticcheck
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user