mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdAdd
- Removed TDB2::commit. - Removed unnecessary return code.
This commit is contained in:
parent
c4c25706ac
commit
3bdaeb5f91
1 changed files with 1 additions and 4 deletions
|
@ -47,8 +47,6 @@ CmdAdd::CmdAdd ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int CmdAdd::execute (std::string& output)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
// Apply the command line modifications to the new task.
|
||||
Task task;
|
||||
task.modify (Task::modReplace, true);
|
||||
|
@ -62,8 +60,7 @@ int CmdAdd::execute (std::string& output)
|
|||
if (context.verbose ("project"))
|
||||
context.footnote (onProjectChange (task));
|
||||
|
||||
context.tdb2.commit ();
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue