[presubmit] Fix whitespace/empty_loop_body linter violations.
authormstarzinger <mstarzinger@chromium.org>
Thu, 3 Sep 2015 07:14:56 +0000 (00:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 3 Sep 2015 07:15:17 +0000 (07:15 +0000)
R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1327523003

Cr-Commit-Position: refs/heads/master@{#30553}

src/allocation-tracker.cc
tools/presubmit.py

index 0822c1f4da63ffdcf15b8cfaec36a5bc471de534..3125b0215ae597c03e667001dece91957cfb4e1a 100644 (file)
@@ -176,8 +176,7 @@ void AddressToTraceMap::RemoveRange(Address start, Address end) {
       break;
     }
     ++it;
-  }
-  while (it != ranges_.end());
+  } while (it != ranges_.end());
 
   ranges_.erase(to_remove_begin, it);
 
index e8f50edfa6c913c5af5bf59dd013cb1aa6b04ef0..4836bd953b29157cf4c2501fd93e5f587b12bada 100755 (executable)
@@ -68,7 +68,6 @@ LINT_RULES = """
 -runtime/references
 -runtime/threadsafe_fn
 -whitespace/semicolon
--whitespace/empty_loop_body
 """.split()
 
 LINT_OUTPUT_PATTERN = re.compile(r'^.+[:(]\d+[:)]|^Done processing')