mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Task Validation
- Cleaned up the 'annotate' and 'denotate' code due to the new validation code.
This commit is contained in:
parent
885bde51f1
commit
4cc368da82
2 changed files with 0 additions and 7 deletions
|
@ -77,10 +77,6 @@ int CmdAnnotate::execute (std::string& output)
|
||||||
{
|
{
|
||||||
Task before (*task);
|
Task before (*task);
|
||||||
modify_task_annotate (*task, modifications);
|
modify_task_annotate (*task, modifications);
|
||||||
apply_defaults (*task);
|
|
||||||
|
|
||||||
// Only allow valid tasks.
|
|
||||||
task->validate ();
|
|
||||||
|
|
||||||
if (taskDiff (before, *task))
|
if (taskDiff (before, *task))
|
||||||
{
|
{
|
||||||
|
|
|
@ -116,9 +116,6 @@ int CmdDenotate::execute (std::string& output)
|
||||||
|
|
||||||
if (taskDiff (before, *task))
|
if (taskDiff (before, *task))
|
||||||
{
|
{
|
||||||
// Only allow valid tasks.
|
|
||||||
task->validate ();
|
|
||||||
|
|
||||||
if (permission.confirmed (before,
|
if (permission.confirmed (before,
|
||||||
taskDifferences (before, *task) + STRING_CMD_DONE_PROCEED))
|
taskDifferences (before, *task) + STRING_CMD_DONE_PROCEED))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue