fix lint warnings

replace naked returns with arguments (gofumpt@v0.9.1)
This commit is contained in:
Lawrence, Rendall
2025-09-22 17:11:05 +03:00
parent 61f358c1b2
commit 5513f1357d
28 changed files with 126 additions and 126 deletions

View File

@@ -38,7 +38,7 @@ type TimeCache struct {
func New() (tc *TimeCache) {
tc = &TimeCache{closed: make(chan struct{})}
tc.clock.Store(time.Now().UnixNano())
return
return tc
}
// Run runs the TimeCache, updating the cached clock value once every interval