all: Run modernize -fix ./...

This commit is contained in:
Bjørn Erik Pedersen
2026-08-20 20:39:57 +02:00
parent e31ff547d2
commit 7b5199fdef
21 changed files with 206 additions and 270 deletions
+2 -2
View File
@@ -252,11 +252,11 @@ type IsRebuildProvider interface {
// IncrementByOne implements Incrementer adding 1 every time Incr is called.
type IncrementByOne struct {
counter uint64
counter atomic.Uint64
}
func (c *IncrementByOne) Incr() int {
return int(atomic.AddUint64(&c.counter, uint64(1)))
return int(c.counter.Add(uint64(1)))
}
// Incrementer increments and returns the value.