From 4362422a6d04aed831f65a14b4d957ad78aaaa1c Mon Sep 17 00:00:00 2001 From: Tommie Gannert Date: Wed, 8 Jun 2022 09:24:08 +0200 Subject: [PATCH] Fix two lint errors. --- clientapi/auth/sso/sso.go | 3 ++- userapi/storage/storage_test.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clientapi/auth/sso/sso.go b/clientapi/auth/sso/sso.go index 90c613b37..8847577cb 100644 --- a/clientapi/auth/sso/sso.go +++ b/clientapi/auth/sso/sso.go @@ -26,7 +26,8 @@ import ( ) // maxHTTPTimeout is an upper bound on an HTTP request to an SSO -// backend. The individual request context deadlines are also honored. +// backend. The individual request context deadlines are also +// honoured. const maxHTTPTimeout = 10 * time.Second // An Authenticator keeps a set of identity providers and dispatches diff --git a/userapi/storage/storage_test.go b/userapi/storage/storage_test.go index 1c381ffee..a3b49bc11 100644 --- a/userapi/storage/storage_test.go +++ b/userapi/storage/storage_test.go @@ -443,7 +443,7 @@ func Test_SSO(t *testing.T) { ns := util.RandomString(8) issuer := util.RandomString(8) subject := util.RandomString(8) - err := db.SaveSSOAssociation(ctx, ns, issuer, subject, aliceLocalpart) + err = db.SaveSSOAssociation(ctx, ns, issuer, subject, aliceLocalpart) assert.NoError(t, err, "unable to save SSO association") t.Log("Retrieve localpart for association")