Fixes SonarQube issues.

This commit is contained in:
Ashesh Vashi
2021-05-29 12:55:59 +05:30
committed by Akshay Joshi
parent 2d58f60a53
commit a487a51135
5 changed files with 4 additions and 9 deletions

View File

@@ -64,7 +64,7 @@
if (nextOpen < 0) nextOpen = text.length;
if (nextClose < 0) nextClose = text.length;
pos = Math.min(nextOpen, nextClose);
if (pos == text.length) break;
if (pos == text.length) { whileloopvar=1; break; }
if (cm.getTokenAt(CodeMirror.Pos(i, pos + 1)).type == tokenType) {
if (pos == nextOpen) ++count;
else if (!--count) {