Bug 1338086 - Remove useless else blocks in order to reduce complexity in mozglue/misc/ r=froydnj
authorSylvestre Ledru <sledru@mozilla.com>
Thu, 09 Feb 2017 10:55:26 +0100
changeset 343026 a0a07671fdb1509b458733ce35cd7e6036120b46
parent 343025 aea7a26ac8fc4de4079d4091dc81e43b6a9732dd
child 343027 dbc0c3eb16b411366578d6aea0757d0b81ed9d74
push id31368
push userkwierso@gmail.com
push dateWed, 15 Feb 2017 23:26:19 +0000
treeherdermozilla-central@e783bdf2cb50 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1338086
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1338086 - Remove useless else blocks in order to reduce complexity in mozglue/misc/ r=froydnj MozReview-Commit-ID: Btyl5N6EsUY
mozglue/misc/TimeStamp_posix.cpp
--- 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()