From b7734f0dd4d4b2f8be0db90267638ed22807ba81 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Thu, 15 Dec 2022 12:58:09 +0100 Subject: OAuth: Ignore liniting error when closing server --- internal/oauth/oauth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/oauth/oauth.go b/internal/oauth/oauth.go index 3d71c67..52a64b6 100644 --- a/internal/oauth/oauth.go +++ b/internal/oauth/oauth.go @@ -176,7 +176,8 @@ func (oauth *OAuth) tokensWithCallback() error { // A bit overkill maybe for a local server but good to define anyways ReadHeaderTimeout: 60 * time.Second, } - defer s.Shutdown(oauth.session.Context) + // TODO: Log error + defer s.Shutdown(oauth.session.Context) //nolint:errcheck mux.HandleFunc("/callback", oauth.Handler) go func() { -- cgit v1.2.3