mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColTypeNumeric: Code cleanup
This commit is contained in:
parent
c167fa665e
commit
73d789c593
1 changed files with 3 additions and 3 deletions
|
@ -80,8 +80,8 @@ void ColumnTypeNumeric::modify (Task& task, const std::string& value)
|
||||||
std::string label = " [1;37;43mMODIFICATION[0m ";
|
std::string label = " [1;37;43mMODIFICATION[0m ";
|
||||||
context.debug (label + _name + " <-- '" + evaluatedValue.get_string () + "' <-- '" + value + "'");
|
context.debug (label + _name + " <-- '" + evaluatedValue.get_string () + "' <-- '" + value + "'");
|
||||||
|
|
||||||
// If the result is not readily convertible to a numeric value,
|
// If the result is not readily convertible to a numeric value, then this is
|
||||||
// then this is an error.
|
// an error.
|
||||||
if (evaluatedValue.type () == Variant::type_string)
|
if (evaluatedValue.type () == Variant::type_string)
|
||||||
throw format (STRING_UDA_NUMERIC, evaluatedValue.get_string ());
|
throw format (STRING_UDA_NUMERIC, evaluatedValue.get_string ());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue