Skip to content

Commit

Permalink
lint error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Feb 10, 2025
1 parent eefee12 commit 3bfe682
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/output/stats/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (t *Tracker) incrementCounter(m *mapsutil.SyncLockMap[string, *atomic.Int32
} else {
newCounter := new(atomic.Int32)
newCounter.Store(1)
m.Set(key, newCounter)
_ = m.Set(key, newCounter)
}
}

Expand All @@ -83,15 +83,15 @@ func (t *Tracker) GetStats() *StatsOutput {
ErrorStats: make(map[string]int),
WAFStats: make(map[string]int),
}
t.errorCodes.Iterate(func(k string, v *atomic.Int32) error {
_ = t.errorCodes.Iterate(func(k string, v *atomic.Int32) error {
stats.ErrorStats[k] = int(v.Load())
return nil
})
t.statusCodes.Iterate(func(k string, v *atomic.Int32) error {
_ = t.statusCodes.Iterate(func(k string, v *atomic.Int32) error {
stats.StatusCodeStats[k] = int(v.Load())
return nil
})
t.wafDetected.Iterate(func(k string, v *atomic.Int32) error {
_ = t.wafDetected.Iterate(func(k string, v *atomic.Int32) error {
waf, ok := t.wafDetector.wafs[k]
if !ok {
return nil
Expand Down

0 comments on commit 3bfe682

Please sign in to comment.