mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-20 23:04:47 -07:00
fix lint warnings
replace naked returns with arguments (gofumpt@v0.9.1)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user