mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
CmdStop: Simplified code
This commit is contained in:
parent
b8eb23ceef
commit
df27564231
1 changed files with 1 additions and 2 deletions
|
@ -41,8 +41,7 @@ int CmdStop (
|
|||
auto latest = getLatestInterval (database);
|
||||
|
||||
// Verify the interval is open.
|
||||
if ( latest.range.started () &&
|
||||
! latest.range.ended ())
|
||||
if (latest.range.open ())
|
||||
{
|
||||
// Stop it.
|
||||
Interval modified {latest};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue