Skip to content

Commit 6ca1aea

Browse files
committed
lint fix
1 parent 2ab18ae commit 6ca1aea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/impl/shell_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import (
1717
"go.jetpack.io/devbox/internal/shellgen"
1818
)
1919

20-
// update overwrites golden files with the new test results.
21-
var update = flag.Bool("update", false, "update the golden files with the test results")
20+
// updateFlag overwrites golden files with the new test results.
21+
var updateFlag = flag.Bool("update", false, "update the golden files with the test results")
2222

2323
func TestWriteDevboxShellrc(t *testing.T) {
2424
testdirs, err := filepath.Glob("testdata/shellrc/*")
@@ -83,7 +83,7 @@ func testWriteDevboxShellrc(t *testing.T, testdirs []string) {
8383
// Overwrite the golden file if the -update flag was
8484
// set, and then proceed normally. The test should
8585
// always pass in this case.
86-
if *update {
86+
if *updateFlag {
8787
err = os.WriteFile(test.goldShellrcPath, gotShellrc, 0o666)
8888
if err != nil {
8989
t.Error("Error updating golden files:", err)

0 commit comments

Comments
 (0)