mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Inline cli.getIds ()
- It is only used to hint for the modify command if any ids are given Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
11877d3fff
commit
7858bf4be8
1 changed files with 1 additions and 2 deletions
|
@ -52,7 +52,6 @@ int CmdStop (
|
|||
// Load the most recent interval.
|
||||
auto filter = cli.getFilter ();
|
||||
auto latest = getLatestInterval (database);
|
||||
std::set <int> ids = cli.getIds ();
|
||||
|
||||
// Verify the interval is open.
|
||||
if (! latest.is_open ())
|
||||
|
@ -61,7 +60,7 @@ int CmdStop (
|
|||
}
|
||||
|
||||
// We expect no ids
|
||||
if (! ids.empty ())
|
||||
if (! cli.getIds ().empty ())
|
||||
{
|
||||
throw std::string ("The stop command does not accept ids as it works on the most recent open interval only. "
|
||||
"Perhaps you want the modify command?.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue