diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:22:02 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-12-12 13:39:20 +0100 |
| commit | a8a2436975da7f8b8319da21f1ca3d93ebff08e8 (patch) | |
| tree | cafb8ea807e66fe57c612883fa0c726cb429c7ac /internal/oauth/oauth_test.go | |
| parent | 978b9b3eea99d58ad95692c35be15e27608a16ee (diff) | |
OAuth: Minor style changes
Diffstat (limited to 'internal/oauth/oauth_test.go')
| -rw-r--r-- | internal/oauth/oauth_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/oauth/oauth_test.go b/internal/oauth/oauth_test.go index 693984e..c2c012a 100644 --- a/internal/oauth/oauth_test.go +++ b/internal/oauth/oauth_test.go @@ -6,22 +6,22 @@ import ( ) func Test_verifiergen(t *testing.T) { - verifier, verifierErr := genVerifier() - if verifierErr != nil { - t.Fatalf("Gen verifier error: %v", verifierErr) + v, err := genVerifier() + if err != nil { + t.Fatalf("Gen verifier error: %v", err) } // Verifier must be at minimum 43 and at max 128 characters... // However... Our verifier is exactly 43! - if len(verifier) != 43 { + if len(v) != 43 { t.Fatalf( "Got verifier length: %d, want a verifier with at least 43 characters", - len(verifier), + len(v), ) } - _, unescapeErr := url.QueryUnescape(verifier) - if unescapeErr != nil { - t.Fatalf("Verifier: %s can not be unescaped", verifier) + _, err = url.QueryUnescape(v) + if err != nil { + t.Fatalf("Verifier: %s can not be unescaped", v) } } |
