Bug 1338086 - Remove useless else blocks in order to reduce complexity in memory/ r?njn draft
authorSylvestre Ledru <sledru@mozilla.com>
Thu, 09 Feb 2017 11:24:39 +0100
changeset 484424 c73ac810dc1ac29a7703b15a730220cf163373e1
parent 484423 78575ea4bcbcd270bd2c34c656c944bad09512ad
child 484425 b5756bed7a5ce649f892195ec85692cc48b7cad5
push id45470
push userbmo:sledru@mozilla.com
push dateWed, 15 Feb 2017 08:57:47 +0000
reviewersnjn
bugs1338086
milestone54.0a1
Bug 1338086 - Remove useless else blocks in order to reduce complexity in memory/ r?njn MozReview-Commit-ID: G7jBKlDHshQ
memory/replace/logalloc/replay/Replay.cpp
--- a/memory/replace/logalloc/replay/Replay.cpp
+++ b/memory/replace/logalloc/replay/Replay.cpp
@@ -515,17 +515,18 @@ main()
 
     Buffer func = line.SplitChar('(');
     Buffer args = line.SplitChar(')');
 
     /* jemalloc_stats and free are functions with no result. */
     if (func == Buffer("jemalloc_stats")) {
       replay.jemalloc_stats(args);
       continue;
-    } else if (func == Buffer("free")) {
+    }
+    if (func == Buffer("free")) {
       replay.free(args);
       continue;
     }
 
     /* Parse result value and get the corresponding slot. */
     Buffer dummy = line.SplitChar('=');
     Buffer dummy2 = line.SplitChar('#');
     if (dummy || dummy2) {