chore: use Go 1.26 (#26786)

This commit is contained in:
andig 2026-02-12 15:56:06 +01:00 • committed by GitHub
parent 88ecd6f152
commit 0ee6d787e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 96 additions and 122 deletions

View file

@ -18,11 +18,11 @@ func ErrorAsJson(err error) any {
Error: err.Error(),
}
if ae := new(api.ErrLoginRequired); errors.As(err, &ae) {
if ae, ok := errors.AsType[*api.ErrLoginRequired](err); ok {
res.LoginRequired = ae.ProviderAuth
}
if ue := new(api.ErrUrl); errors.As(err, &ue) {
if ue, ok := errors.AsType[*api.ErrUrl](err); ok {
res.URI = ue.URL().String()
}