summaryrefslogtreecommitdiff
path: root/internal/oauth
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-15 12:58:09 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-15 12:58:09 +0100
commitb7734f0dd4d4b2f8be0db90267638ed22807ba81 (patch)
treeca1189fe59b314b204b3d60598ff44e4e3b9c597 /internal/oauth
parent86e1a5dfa5202887d4a81bd2e55608475cf14f2e (diff)
OAuth: Ignore liniting error when closing server
Diffstat (limited to 'internal/oauth')
-rw-r--r--internal/oauth/oauth.go3
1 files changed, 2 insertions, 1 deletions
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() {