Fixing Unwrapable interface the other time

This commit is contained in:
Foil-hat-guy 2025-05-08 11:48:14 +03:00
parent 2334bd034e
commit d8f8d5b1ef
No known key found for this signature in database
GPG key ID: 221CC305A7B23591

View file

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