this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use errors.Is instead of xerrors.Is (#194)

Cleaning up a deprecation warning that popped up in my editor while
working on other things. xerrors has marked itself as deprecated for Go
versions 1.13 and later.

authored by

Whyrusleeping and committed by
GitHub
83eb7005 9934ef7b

+1 -2
+1 -2
pds/server.go
··· 34 34 "github.com/labstack/echo/v4/middleware" 35 35 "github.com/lestrrat-go/jwx/v2/jwt" 36 36 "github.com/whyrusleeping/go-did" 37 - "golang.org/x/xerrors" 38 37 "gorm.io/gorm" 39 38 ) 40 39 ··· 343 342 // TODO: need to properly figure out where http error codes for error 344 343 // types get decided. This spot is reasonable, but maybe a bit weird. 345 344 // reviewers, please advise 346 - if xerrors.Is(err, ErrNoSuchUser) { 345 + if errors.Is(err, ErrNoSuchUser) { 347 346 ctx.Response().WriteHeader(404) 348 347 return 349 348 }