mirror of
https://github.com/denoland/deno.git
synced 2025-02-02 04:38:21 -05:00
Minor optimization to repl.ts (#1561)
This commit is contained in:
parent
e470f31d32
commit
41cf82870b
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ function parenthesesAreOpen(code: string): boolean {
|
|||
if (bracePosition % 2 === 0) {
|
||||
stack.push(bracePosition + 1); // push next expected brace position
|
||||
} else {
|
||||
if (stack.length === 0 || stack.pop() !== bracePosition) {
|
||||
if (stack.pop() !== bracePosition) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue