diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-02-14 19:01:57 +0100 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-02-17 08:18:57 +0000 |
| commit | 4121cf9df313ee111c01fde1f255d010c8d941cd (patch) | |
| tree | dcd0d104c8c35997103297dfb7dc1f0de6b77b8e /pkg/vminfo | |
| parent | 9f05da3db0234203729d2ad179ab5a2f72bf607f (diff) | |
all: remove loop variables scoping
Diffstat (limited to 'pkg/vminfo')
| -rw-r--r-- | pkg/vminfo/features.go | 1 | ||||
| -rw-r--r-- | pkg/vminfo/vminfo_test.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/pkg/vminfo/features.go b/pkg/vminfo/features.go index bf2d152ab..2be067d32 100644 --- a/pkg/vminfo/features.go +++ b/pkg/vminfo/features.go @@ -48,7 +48,6 @@ type featureResult struct { func (ctx *checkContext) startFeaturesCheck() { testProg := ctx.target.DataMmapProg() for feat := range flatrpc.EnumNamesFeature { - feat := feat if ctx.cfg.Features&feat == 0 { ctx.features <- featureResult{feat, "disabled by user"} continue diff --git a/pkg/vminfo/vminfo_test.go b/pkg/vminfo/vminfo_test.go index 7a50d5142..c54b43e21 100644 --- a/pkg/vminfo/vminfo_test.go +++ b/pkg/vminfo/vminfo_test.go @@ -49,7 +49,6 @@ func TestSyscalls(t *testing.T) { t.Parallel() for _, arches := range targets.List { for _, target := range arches { - target := target if target.OS == targets.Linux { continue // linux has own TestLinuxSyscalls test } |
