Trivial refactor.

This commit is contained in:
Sönke Ludwig 2017-01-21 17:27:54 +01:00
parent 74d9242086
commit 4c7281dd01
No known key found for this signature in database
GPG key ID: D95E8DB493EE314C

View file

@ -32,7 +32,8 @@ final class LoopTimeoutTimerDriver : EventDriverTimers {
final package Duration getNextTimeout(long stdtime)
@safe nothrow {
return m_timerQueue.length ? (m_timerQueue.front.timeout - stdtime).hnsecs : Duration.max;
if (m_timerQueue.length == 0) return Duration.max;
return (m_timerQueue.front.timeout - stdtime).hnsecs;
}
final package bool process(long stdtime)