Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Unified Diff: src/parser.cc

Issue 315003007: Fix presubmit style error in parser.cc (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index f40d79808bda73ed067ed77e9f921d93fe247cf6..51065568bac7855a841c4fc724ba1d60d5e633a1 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -2287,11 +2287,13 @@ Block* Parser::ParseVariableDeclarations(
static bool ContainsLabel(ZoneStringList* labels, Handle<String> label) {
ASSERT(!label.is_null());
- if (labels != NULL)
- for (int i = labels->length(); i-- > 0; )
- if (labels->at(i).is_identical_to(label))
+ if (labels != NULL) {
+ for (int i = labels->length(); i-- > 0; ) {
+ if (labels->at(i).is_identical_to(label)) {
return true;
-
+ }
+ }
+ }
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698