From 77ae4a3613bf6679a29b814a987f0008464e7969 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 9 Aug 2015 10:43:43 -0400 Subject: [PATCH] Task: Code cleanup --- src/Task.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 67436b674..5795bd440 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1439,7 +1439,7 @@ void Task::validate (bool applyDefault /* = true */) #ifdef PRODUCT_TASKWARRIOR // Provide an entry date unless user already specified one. - if (!has ("entry") || get ("entry") == "") + if (! has ("entry") || get ("entry") == "") setAsNow ("entry"); // Completed tasks need an end date, so inherit the entry date. @@ -1448,7 +1448,7 @@ void Task::validate (bool applyDefault /* = true */) setAsNow ("end"); // Provide an entry date unless user already specified one. - if (!has ("modified") || get ("modified") == "") + if (! has ("modified") || get ("modified") == "") setAsNow ("modified"); if (applyDefault && (! has ("parent") || get ("parent") == "")) @@ -1520,7 +1520,7 @@ void Task::validate (bool applyDefault /* = true */) // 3) To generate errors when the inconsistencies are not fixable // There is no fixing a missing description. - if (!has ("description")) + if (! has ("description")) throw std::string (STRING_TASK_VALID_DESC); else if (get ("description") == "") throw std::string (STRING_TASK_VALID_BLANK);