CmdAdd
- Removed TDB2::commit. - Removed unnecessary return code.
This commit is contained in:
@@ -47,8 +47,6 @@ CmdAdd::CmdAdd ()
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
int CmdAdd::execute (std::string& output)
|
int CmdAdd::execute (std::string& output)
|
||||||
{
|
{
|
||||||
int rc = 0;
|
|
||||||
|
|
||||||
// Apply the command line modifications to the new task.
|
// Apply the command line modifications to the new task.
|
||||||
Task task;
|
Task task;
|
||||||
task.modify (Task::modReplace, true);
|
task.modify (Task::modReplace, true);
|
||||||
@@ -62,8 +60,7 @@ int CmdAdd::execute (std::string& output)
|
|||||||
if (context.verbose ("project"))
|
if (context.verbose ("project"))
|
||||||
context.footnote (onProjectChange (task));
|
context.footnote (onProjectChange (task));
|
||||||
|
|
||||||
context.tdb2.commit ();
|
return 0;
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user