Skip to content

Commit cb2733c

Browse files
style: gofmt -s
让 CI 的 golangci-lint 步骤通过。三个文件被 -s 简化对齐: 注释列对齐空格、结构体 tag 列对齐。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 683d7b8 commit cb2733c

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

internal/authflow/loopback.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ type CallbackResult struct {
5252

5353
// Flow is a single-shot loopback server.
5454
type Flow struct {
55-
State string // 32-byte hex CSRF nonce
56-
Port int // TCP port we bound to
57-
WebOrigin string // e.g. https://mp2rss.bugcode.dev
58-
Timeout time.Duration // override DefaultTimeout for tests
55+
State string // 32-byte hex CSRF nonce
56+
Port int // TCP port we bound to
57+
WebOrigin string // e.g. https://mp2rss.bugcode.dev
58+
Timeout time.Duration // override DefaultTimeout for tests
5959

6060
listener net.Listener
6161
server *http.Server

internal/output/output_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ func TestTruncate_CJKAware(t *testing.T) {
1616
want string
1717
}{
1818
{"abcdefgh", 5, "abcd…"},
19-
{"中文测试", 4, "中…"}, // 中 is 2 cols → 2 + 1 ellipsis = 3 ≤ 4-1=3 wait
20-
{"短", 10, "短"}, // fits, no truncation
21-
{"hello", 5, "hello"}, // exactly fits
19+
{"中文测试", 4, "中…"}, // 中 is 2 cols → 2 + 1 ellipsis = 3 ≤ 4-1=3 wait
20+
{"短", 10, "短"}, // fits, no truncation
21+
{"hello", 5, "hello"}, // exactly fits
2222
{"", 5, ""},
2323
}
2424
for _, c := range cases {

internal/version/version_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func TestCompare(t *testing.T) {
1414
{"v2.0.0", "v1.9.9", 1},
1515
{"v1.0", "v1.0.0", 0}, // zero-padding
1616
{"v1.0", "v1.0.1", -1},
17-
{"v1.2.3", "v1.2.3-rc1", 1}, // pre-release loses to release
17+
{"v1.2.3", "v1.2.3-rc1", 1}, // pre-release loses to release
1818
{"v1.2.3-rc1", "v1.2.3-rc2", -1},
1919
{"v1.0.0+abc", "v1.0.0+def", 0}, // build metadata ignored
2020
{"dev", "v0.0.1", -1},

0 commit comments

Comments
 (0)