[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 0822c1f..3125b02 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 e8f50ed..4836bd9 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')