Drop newline at end of if branch

This commit is contained in:
Christian Göttsche 2021-02-28 22:47:45 +01:00 committed by BenBE
parent ff4ee2eafc
commit 635d4cfe60
2 changed files with 2 additions and 4 deletions

View File

@ -27,8 +27,7 @@ static void DateMeter_updateValues(Meter* this, char* buffer, size_t size) {
int year = lt->tm_year + 1900;
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
this->total = 366;
}
else {
} else {
this->total = 365;
}
strftime(buffer, size, "%F", lt);

View File

@ -26,8 +26,7 @@ static void DateTimeMeter_updateValues(Meter* this, char* buffer, size_t size) {
int year = lt->tm_year + 1900;
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) {
this->total = 366;
}
else {
} else {
this->total = 365;
}
this->values[0] = lt->tm_yday;