Skip to content

Commit 386472e

Browse files
committed
manual fix
1 parent 6e4aa79 commit 386472e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

modules/auth/openid/openid.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ import (
1717
// If you have multiple servers for example, you may need to share at
1818
// least
1919
// the nonceStore between them.
20-
var nonceStore = openid.NewSimpleNonceStore()
21-
var discoveryCache = newTimedDiscoveryCache(24 * time.Hour)
20+
var (
21+
nonceStore = openid.NewSimpleNonceStore()
22+
discoveryCache = newTimedDiscoveryCache(24 * time.Hour)
23+
)
2224

2325
// Verify handles response from OpenID provider
2426
func Verify(fullURL string) (id string, err error) {

modules/util/truncate.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ package util
77
import "unicode/utf8"
88

99
// in UTF8 "…" is 3 bytes so doesn't really gain us anything...
10-
const utf8Ellipsis = "…"
11-
const asciiEllipsis = "..."
10+
const (
11+
utf8Ellipsis = "…"
12+
asciiEllipsis = "..."
13+
)
1214

1315
// SplitStringAtByteN splits a string at byte n accounting for rune boundaries. (Combining characters are not accounted for.)
1416
func SplitStringAtByteN(input string, n int) (left, right string) {

0 commit comments

Comments
 (0)