Skip to content

Commit

Permalink
pkg/idtools: remove redundant capturing of loop vars (copyloopvar)
Browse files Browse the repository at this point in the history
    pkg/idtools/idtools_unix_test.go:188:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
            tc := tc
            ^

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Nov 12, 2024
1 parent 3350920 commit d67a21b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/idtools/idtools_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ func TestMkdirAllAndChownNewRelative(t *testing.T) {
const expectedUIDGID = 101

for _, tc := range tests {
tc := tc
t.Run(tc.in, func(t *testing.T) {
for _, p := range tc.out {
_, err := os.Stat(p)
Expand Down

0 comments on commit d67a21b

Please sign in to comment.