lint 💄

This commit is contained in:
Samuel Berthe
2024-08-18 21:30:09 +02:00
parent 38e0245ce9
commit f3ee53b393
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ import (
// Play: https://go.dev/play/p/vPyh51XpCBt // Play: https://go.dev/play/p/vPyh51XpCBt
func Validate(ok bool, format string, args ...any) error { func Validate(ok bool, format string, args ...any) error {
if !ok { if !ok {
return fmt.Errorf(fmt.Sprintf(format, args...)) return fmt.Errorf(format, args...)
} }
return nil return nil
} }

View File

@@ -27,7 +27,7 @@ func TestIsNil(t *testing.T) {
var ifaceWithNilValue any = (*string)(nil) var ifaceWithNilValue any = (*string)(nil)
is.True(IsNil(ifaceWithNilValue)) is.True(IsNil(ifaceWithNilValue))
is.False(ifaceWithNilValue == nil) // nolint:staticcheck is.False(ifaceWithNilValue == nil) //nolint:staticcheck
} }
func TestToPtr(t *testing.T) { func TestToPtr(t *testing.T) {