make code readable
This commit is contained in:
parent
28cb69ed68
commit
87fcd2c8a4
@ -62,7 +62,7 @@ class BalancedBrackets {
|
|||||||
case ')':
|
case ')':
|
||||||
case ']':
|
case ']':
|
||||||
case '}':
|
case '}':
|
||||||
if (!(!bracketsStack.isEmpty() && isPaired(bracketsStack.pop(), bracket))) {
|
if (bracketsStack.isEmpty() || !isPaired(bracketsStack.pop(), bracket)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user