Bug 1338086 - Remove useless else blocks in order to reduce complexity in mozglue/misc/ r?froydnj draft
authorSylvestre Ledru <sledru@mozilla.com>
Thu, 09 Feb 2017 10:55:26 +0100
changeset 484414 e169efa60f5841a15558cf045a325105f7b89d41
parent 484413 1dbc4995b356600ba011d63d9bcfbdb458be71b4
child 484415 a43087937bc3e974a5b8b2495f2c855a84bd3780
push id45470
push userbmo:sledru@mozilla.com
push dateWed, 15 Feb 2017 08:57:47 +0000
reviewersfroydnj
bugs1338086
milestone54.0a1
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()