tiny refactor: inline a tiny single-use fun and move another

This commit is contained in:
Matthias Radestock committed 2015-11-07 12:44:13 +00:00
1 parent 4e34f2001c
commit 7a5c910cd5
2 files changed
+10 -14

No files matched your search

+7
View File
@@ -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
}