mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 07:18:54 +00:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user