File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff 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
2426func Verify (fullURL string ) (id string , err error ) {
Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ package util
77import "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.)
1416func SplitStringAtByteN (input string , n int ) (left , right string ) {
You can’t perform that action at this time.
0 commit comments