mirror of
https://github.com/samber/lo.git
synced 2025-10-05 07:56:51 +08:00
lint 💄
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
// Play: https://go.dev/play/p/vPyh51XpCBt
|
||||
func Validate(ok bool, format string, args ...any) error {
|
||||
if !ok {
|
||||
return fmt.Errorf(fmt.Sprintf(format, args...))
|
||||
return fmt.Errorf(format, args...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ func TestIsNil(t *testing.T) {
|
||||
|
||||
var ifaceWithNilValue any = (*string)(nil)
|
||||
is.True(IsNil(ifaceWithNilValue))
|
||||
is.False(ifaceWithNilValue == nil) // nolint:staticcheck
|
||||
is.False(ifaceWithNilValue == nil) //nolint:staticcheck
|
||||
}
|
||||
|
||||
func TestToPtr(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user