Skip to content

Commit

Permalink
Drop newline at end of if branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cgzones authored and BenBE committed Mar 2, 2021
1 parent ff4ee2e commit 635d4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions DateMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions DateTimeMeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 635d4cf

Please sign in to comment.