Permalink
Browse files

Extract creation of time from if-Statements

  • Loading branch information...
lauft committed Nov 2, 2018
1 parent 230c63b commit 391a0f124b7e275fc5d5edfd602f7ffe2bfff8f1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Datetime.cpp
@@ -1464,7 +1464,6 @@ bool Datetime::initializeOrdinal (Pig& pig)
t->tm_mday = number;
t->tm_year = y - 1900;
t->tm_isdst = -1;
_date = mktime (t);
}
else
{
@@ -1479,9 +1478,10 @@ bool Datetime::initializeOrdinal (Pig& pig)
t->tm_mday = number;
t->tm_year = y - 1900;
t->tm_isdst = -1;
_date = mktime (t);
}

_date = mktime (t);

return true;
}
}

0 comments on commit 391a0f1

Please sign in to comment.