Commit f977f507 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Task: Minor simplification

parent 57ed3b93
......@@ -90,9 +90,7 @@ bool Task::saveParserStep()
{
static const std::string req = "UPDATE " + policy::TaskTable::Name + " SET step = ?, "
"retry_count = 0 WHERE id_task = ?";
if ( sqlite::Tools::executeUpdate( m_ml->getConn(), req, m_step, m_id ) == false )
return false;
return true;
return sqlite::Tools::executeUpdate( m_ml->getConn(), req, m_step, m_id );
}
bool Task::resetRetryCountOnSuccess()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment