From 6b30f2e983c1c651e857480f389f3e89fde9eb85 Mon Sep 17 00:00:00 2001 From: Raphael Simon Date: Tue, 10 Sep 2024 11:12:34 -0700 Subject: [PATCH] Fix lint issues --- security/multiauth/secured_service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/multiauth/secured_service.go b/security/multiauth/secured_service.go index 68f4c2d64..07a5428fa 100644 --- a/security/multiauth/secured_service.go +++ b/security/multiauth/secured_service.go @@ -163,7 +163,7 @@ func (s *securedServicesrvc) Signin(ctx context.Context, p *securedservice.Signi func (s *securedServicesrvc) Secure(ctx context.Context, p *securedservice.SecurePayload) (res string, err error) { res = fmt.Sprintf("User authorized using JWT token %q", p.Token) authInfo := contextAuthInfo(ctx) - s.logger.Printf(res) + s.logger.Print(res) s.logger.Printf("%v", authInfo) if p.Fail != nil && *p.Fail { s.logger.Printf("Uh oh! `fail` passed in parameter. Auth failed!") @@ -177,7 +177,7 @@ func (s *securedServicesrvc) Secure(ctx context.Context, p *securedservice.Secur func (s *securedServicesrvc) DoublySecure(ctx context.Context, p *securedservice.DoublySecurePayload) (res string, err error) { res = fmt.Sprintf("User authorized using JWT token %q and API Key %q", p.Token, p.Key) authInfo := contextAuthInfo(ctx) - s.logger.Printf(res) + s.logger.Print(res) s.logger.Printf("%v", authInfo) return } @@ -187,7 +187,7 @@ func (s *securedServicesrvc) DoublySecure(ctx context.Context, p *securedservice func (s *securedServicesrvc) AlsoDoublySecure(ctx context.Context, p *securedservice.AlsoDoublySecurePayload) (res string, err error) { if p.Username != nil && p.Password != nil && p.OauthToken != nil { res = fmt.Sprintf("User authorized using username %q/password %q and OAuth2 token %q", *p.Username, *p.Password, *p.OauthToken) - s.logger.Printf(res) + s.logger.Print(res) return } res = fmt.Sprintf("User authorized using JWT token %q and API Key %q", *p.Token, *p.Key)