From e5390c3d86bdf1e0f209bcbd01fd7bfc403f5d20 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Thu, 19 Mar 2026 08:48:30 +0200 Subject: [PATCH] added missing error return and fixed comment typo --- apis/record_auth_impersonate.go | 2 +- tools/auth/auth.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/record_auth_impersonate.go b/apis/record_auth_impersonate.go index c1982054..f0d51615 100644 --- a/apis/record_auth_impersonate.go +++ b/apis/record_auth_impersonate.go @@ -34,7 +34,7 @@ func recordAuthImpersonate(e *core.RequestEvent) error { token, err := record.NewStaticAuthToken(time.Duration(form.Duration) * time.Second) if err != nil { - e.InternalServerError("Failed to generate static auth token", err) + return e.InternalServerError("Failed to generate static auth token", err) } return recordAuthResponse(e, record, token, "", nil) diff --git a/tools/auth/auth.go b/tools/auth/auth.go index 4d681f92..5a1b13c5 100644 --- a/tools/auth/auth.go +++ b/tools/auth/auth.go @@ -93,7 +93,7 @@ type Provider interface { SetUserInfoURL(url string) // Extra returns a shallow copy of any custom config data - // that the provider may be need. + // that the provider may need. Extra() map[string]any // SetExtra updates the provider's custom config data.