mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdDefault: Simplified code
This commit is contained in:
parent
46ab996018
commit
e9eb896577
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ int CmdDefault (Rules& rules, Database& database)
|
|||
|
||||
// Load the most recent interval, summarize and display.
|
||||
auto interval = getLatestInterval (database);
|
||||
if (interval.range.started () && ! interval.range.ended ())
|
||||
if (interval.range.open ())
|
||||
{
|
||||
if (rules.getBoolean ("verbose"))
|
||||
std::cout << intervalSummarize (rules, interval);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue