tiny refactor: inline a tiny single-use fun and move another
This commit is contained in:
1 parent
4e34f2001c
commit
7a5c910cd5
2 files changed
+10
-14
No files matched your search
@@ -1126,3 +1126,10 @@ func timerChan(timer *time.Timer) <-chan time.Time {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func tickerChan(ticker *time.Ticker) <-chan time.Time {
|
||||
if ticker != nil {
|
||||
return ticker.C
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in new issue
Block a user