Skip to content

Commit

Permalink
Merge pull request #2892 from alexandear/refactor/useless-copy-loop-var
Browse files Browse the repository at this point in the history
refactor: remove useless copy loop var
  • Loading branch information
jandubois authored Nov 12, 2024
2 parents 784625e + 8a665d1 commit 243ad9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ linters:
- typecheck
# - asciicheck
- bodyclose
- copyloopvar
# - dogsled
# - dupl
- dupword
Expand Down
3 changes: 0 additions & 3 deletions pkg/qemu/qemu_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ func (l *LimaQemuDriver) Start(ctx context.Context) (chan error, error) {
}

for i, vhostCmd := range vhostCmds {
i := i
vhostCmd := vhostCmd

logrus.Debugf("vhostCmd[%d].Args: %v", i, vhostCmd.Args)
if err := vhostCmd.Start(); err != nil {
return nil, err
Expand Down

0 comments on commit 243ad9c

Please sign in to comment.