From 8a665d1a7df91bd8a55fd8f485565ba291a9619a Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Mon, 11 Nov 2024 19:37:38 +0200 Subject: [PATCH] refactor: remove useless copy loop var Signed-off-by: Oleksandr Redko --- .golangci.yml | 1 + pkg/qemu/qemu_driver.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2376633fe37..b40cfd9ff77 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -32,6 +32,7 @@ linters: - typecheck # - asciicheck - bodyclose + - copyloopvar # - dogsled # - dupl - dupword diff --git a/pkg/qemu/qemu_driver.go b/pkg/qemu/qemu_driver.go index d0687a0b707..84561306621 100644 --- a/pkg/qemu/qemu_driver.go +++ b/pkg/qemu/qemu_driver.go @@ -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