| Index: src/ast/scopes.h
|
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h
|
| index 80cbe63cbed7b1701509793a2aac742bbd09846b..53c9806aeb669ba64ef51f52329d154a87344a5d 100644
|
| --- a/src/ast/scopes.h
|
| +++ b/src/ast/scopes.h
|
| @@ -622,11 +622,9 @@ class Scope: public ZoneObject {
|
| const AstRawString* catch_variable_name);
|
|
|
| void AddInnerScope(Scope* inner_scope) {
|
| - if (inner_scope != nullptr) {
|
| - inner_scope->sibling_ = inner_scope_;
|
| - inner_scope_ = inner_scope;
|
| - inner_scope->outer_scope_ = this;
|
| - }
|
| + inner_scope->sibling_ = inner_scope_;
|
| + inner_scope_ = inner_scope;
|
| + inner_scope->outer_scope_ = this;
|
| }
|
|
|
| void RemoveInnerScope(Scope* inner_scope) {
|
|
|