Skip to content

Commit 67dbbc6

Browse files
authored
🌱 (chore): simplify test variable declarations for CLI tests (kubernetes-sigs#4665)
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 d459222 commit 67dbbc6

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)