diff --git a/errors.go b/errors.go index e63bf5d8..493580b1 100644 --- a/errors.go +++ b/errors.go @@ -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 } diff --git a/type_manipulation_test.go b/type_manipulation_test.go index 3a7d3145..b9971905 100644 --- a/type_manipulation_test.go +++ b/type_manipulation_test.go @@ -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) {