Skip to content
Snippets Groups Projects
Commit ce0b423b authored by Theodoros Katzalis's avatar Theodoros Katzalis
Browse files

Clang has a point about the `readability-else-after-return` error. Fixed

parent afa0955e
No related merge requests found
...@@ -53,12 +53,10 @@ struct TimeAndDate TimeHelper::utcTime(uint32_t seconds) { ...@@ -53,12 +53,10 @@ struct TimeAndDate TimeHelper::utcTime(uint32_t seconds) {
if (i == 1 && IsLeapYear(TimeInfo.year)) { if (i == 1 && IsLeapYear(TimeInfo.year)) {
if (seconds <= (28 * SecondsPerDay)) { if (seconds <= (28 * SecondsPerDay)) {
break; break;
} else {
TimeInfo.month++;
seconds -= 29 * SecondsPerDay;
i++;
} }
TimeInfo.month++;
seconds -= 29 * SecondsPerDay;
i++;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment