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);
|
auto latest = getLatestInterval (database);
|
||||||
|
|
||||||
// Verify the interval is open.
|
// Verify the interval is open.
|
||||||
if ( latest.range.started () &&
|
if (latest.range.open ())
|
||||||
! latest.range.ended ())
|
|
||||||
{
|
{
|
||||||
// Stop it.
|
// Stop it.
|
||||||
Interval modified {latest};
|
Interval modified {latest};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue