Skip to content

Commit 8c2fd26

Browse files
DTTerastarclaude
andcommitted
chore: gofmt internal/cronoapi/gwt.go (preexisting drift from #37)
Pure formatting: column-aligned const block and var block. No logic change. Flagged by `gofmt -l .` during review of #44. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent aac6c4b commit 8c2fd26

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

internal/cronoapi/gwt.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
const DefaultGWTPermutation = "7B121DC5483BF272B1BC1916DA9FA963"
1818

1919
const (
20-
gwtModuleBase = "https://cronometer.com/cronometer/"
21-
gwtServiceIfc = "com.cronometer.shared.rpc.CronometerService"
20+
gwtModuleBase = "https://cronometer.com/cronometer/"
21+
gwtServiceIfc = "com.cronometer.shared.rpc.CronometerService"
2222
gwtContentType = "text/x-gwt-rpc; charset=UTF-8"
2323
)
2424

@@ -88,10 +88,10 @@ func logoutBody(permutation, authToken string) string {
8888
// exception. parseGwtOK strips the //OK prefix and returns the inner
8989
// payload (everything between the [ and the trailing ]).
9090
var (
91-
gwtOKRe = regexp.MustCompile(`^//OK\[(.*)\]\s*$`)
92-
gwtUserIDRe = regexp.MustCompile(`^//OK\[(\d+),`)
93-
gwtAuthTokRe = regexp.MustCompile(`"([0-9a-fA-F]{32})"`)
94-
gwtNonceRe = regexp.MustCompile(`\["([0-9a-fA-F]{32})"\]`)
91+
gwtOKRe = regexp.MustCompile(`^//OK\[(.*)\]\s*$`)
92+
gwtUserIDRe = regexp.MustCompile(`^//OK\[(\d+),`)
93+
gwtAuthTokRe = regexp.MustCompile(`"([0-9a-fA-F]{32})"`)
94+
gwtNonceRe = regexp.MustCompile(`\["([0-9a-fA-F]{32})"\]`)
9595
)
9696

9797
// parseAuthenticateResponse pulls (userID, sessionAuthToken) out of the

0 commit comments

Comments
 (0)