Bug 1338086 - Remove useless else blocks in order to reduce complexity in mozglue/misc/ r?froydnj
MozReview-Commit-ID: Btyl5N6EsUY
--- a/mozglue/misc/TimeStamp_posix.cpp
+++ b/mozglue/misc/TimeStamp_posix.cpp
@@ -149,17 +149,18 @@ BaseTimeDurationPlatformUtils::ToSeconds
}
int64_t
BaseTimeDurationPlatformUtils::TicksFromMilliseconds(double aMilliseconds)
{
double result = aMilliseconds * kNsPerMsd;
if (result > INT64_MAX) {
return INT64_MAX;
- } else if (result < INT64_MIN) {
+ }
+ if (result < INT64_MIN) {
return INT64_MIN;
}
return result;
}
int64_t
BaseTimeDurationPlatformUtils::ResolutionInTicks()