From e3179558f05e9bb2c8c57fe9d0e916cb829df11c Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Tue, 21 Jul 2026 14:28:15 +0200 Subject: bump Go to 1.26, replace errext.As with errors.AsType --- errors.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'errors.go') diff --git a/errors.go b/errors.go index 1957aeb..fd34eec 100644 --- a/errors.go +++ b/errors.go @@ -24,8 +24,6 @@ import ( "net/http" "strconv" "strings" - - "go.xyrillian.de/schwift/v2/internal/errext" ) var ( @@ -150,7 +148,7 @@ func (e BulkError) Error() string { // // It is safe to pass a nil error, in which case Is() always returns false. func Is(err error, code int) bool { - if e, ok := errext.As[UnexpectedStatusCodeError](err); ok { + if e, ok := errors.AsType[UnexpectedStatusCodeError](err); ok { return e.ActualResponse.StatusCode == code } return false -- cgit v1.3.1