This commit is contained in:
Foil-hat-guy 2025-05-08 12:33:58 +03:00
parent b912e0a803
commit f5d30ae155
No known key found for this signature in database
GPG key ID: 221CC305A7B23591

View file

@ -2,7 +2,6 @@ package stty
import( import(
"fmt" "fmt"
"errors"
) )
type unwraperr interface { type unwraperr interface {
@ -21,9 +20,9 @@ func isUnwrapable(err error) bool {
func enshureUnwrapable(err error) error { func enshureUnwrapable(err error) error {
if isUnwrapable(err) { if isUnwrapable(err) {
return err return fmt.Errorf(err.Error())
} }
return errors.New(err.Error()) return err
} }
func filterNilErrors(errs []error) (notNilErrs []error) { func filterNilErrors(errs []error) (notNilErrs []error) {