Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed May 31, 2019
1 parent a630866 commit df11753
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
11 changes: 3 additions & 8 deletions src/ast/scopes/BlockScope.ts
Expand Up @@ -11,16 +11,11 @@ export default class BlockScope extends ChildScope {
context: AstContext,
init: ExpressionEntity | null = null,
isHoisted = false
) {
): LocalVariable {
if (isHoisted) {
return this.parent.addDeclaration(
identifier,
context,
UNKNOWN_EXPRESSION,
true
) as LocalVariable;
return this.parent.addDeclaration(identifier, context, UNKNOWN_EXPRESSION, true);
} else {
return super.addDeclaration(identifier, context, init, false) as LocalVariable;
return super.addDeclaration(identifier, context, init, false);
}
}
}
6 changes: 3 additions & 3 deletions src/ast/scopes/CatchScope.ts
Expand Up @@ -10,11 +10,11 @@ export default class CatchScope extends ParameterScope {
context: AstContext,
init: ExpressionEntity | null = null,
isHoisted = false
) {
): LocalVariable {
if (isHoisted) {
return this.parent.addDeclaration(identifier, context, init, true) as LocalVariable;
return this.parent.addDeclaration(identifier, context, init, true);
} else {
return super.addDeclaration(identifier, context, init, false) as LocalVariable;
return super.addDeclaration(identifier, context, init, false);
}
}
}

0 comments on commit df11753

Please sign in to comment.