Commit 3f8ad8fc authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Merge conditions.

parent 3e3ce7de
......@@ -37,10 +37,8 @@ int get_timeunit(size_t len, const char *ptu)
else if ( str_is_equal(ptu, "calendar_month") ) timeunit = TUNIT_MONTH;
else if ( str_is_equal(ptu, "year") ) timeunit = TUNIT_YEAR;
}
else if ( len == 1 )
{
if ( ptu[0] == 's' ) timeunit = TUNIT_SECOND;
}
else if ( len == 1 && ptu[0] == 's' )
timeunit = TUNIT_SECOND;
return timeunit;
}
......
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