Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Wisniewski, Krzysztof2 <[email protected]>
  • Loading branch information
kwisniewski98 committed Nov 3, 2020
1 parent 5f78d87 commit cf09a32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf/uncore_libpfm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cf09a32

Please sign in to comment.