TI-47: first call successfully creates new database but returns exit status 1

- Thanks to Georg Sauthoff.
This commit is contained in:
Paul Beckingham 2016-09-23 19:37:16 -04:00
parent 28e1dffec5
commit 77ec509cff
3 changed files with 4 additions and 5 deletions

View file

@ -33,8 +33,6 @@
// Returns 0 if tracking is active, 1 if not.
int CmdDefault (Rules& rules, Database& database)
{
int status = 0;
// Load the most recent interval, summarize and display.
auto interval = getLatestInterval (database);
if (interval.range.is_open ())
@ -61,11 +59,9 @@ int CmdDefault (Rules& rules, Database& database)
else
std::cout << "There is no active time tracking.\n";
}
status = 1;
}
return status;
return 0;
}
////////////////////////////////////////////////////////////////////////////////