Skip to content

Commit f6dc5ce

Browse files
committed
chore: simplify test variable declarations for CLI tests
Replaced redundant multi-line `var` blocks with single-line declarations in `version_test.go` and `completion_test.go`. This reduces visual noise and aligns with idiomatic Go style for concise test setup.
1 parent e3658a6 commit f6dc5ce

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

pkg/cli/completion_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ import (
2222
)
2323

2424
var _ = Describe("Completion", func() {
25-
var (
26-
c *CLI
27-
)
25+
var c *CLI
2826

2927
BeforeEach(func() {
3028
c = &CLI{}

pkg/cli/version_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ import (
2222
)
2323

2424
var _ = Describe("Version", func() {
25-
var (
26-
c *CLI
27-
)
25+
var c *CLI
2826

2927
BeforeEach(func() {
3028
c = &CLI{}

0 commit comments

Comments
 (0)