From cf09a324fad76a7562f0f395e7d344af1f230ec1 Mon Sep 17 00:00:00 2001 From: "Wisniewski, Krzysztof2" Date: Tue, 3 Nov 2020 10:41:41 +0100 Subject: [PATCH] Fix lint errors Signed-off-by: Wisniewski, Krzysztof2 --- perf/uncore_libpfm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perf/uncore_libpfm.go b/perf/uncore_libpfm.go index ea85178acb..a6450fabe9 100644 --- a/perf/uncore_libpfm.go +++ b/perf/uncore_libpfm.go @@ -327,7 +327,7 @@ func (c *uncoreCollector) Destroy() { c.cpuFilesLock.Lock() defer c.cpuFilesLock.Unlock() - for groupIndex, _ := range c.cpuFiles { + for groupIndex := range c.cpuFiles { c.deleteGroup(groupIndex) delete(c.cpuFiles, groupIndex) } @@ -471,7 +471,7 @@ func (c *uncoreCollector) setupRawEvent(event *CustomEvent, pmus uncorePMUs, gro return nil } -func (c *uncoreCollector) deleteGroup (groupIndex int) { +func (c *uncoreCollector) deleteGroup(groupIndex int) { groupPMUs := c.cpuFiles[groupIndex] for pmu, group := range groupPMUs { for name, cpus := range group.cpuFiles {