From 040177ab805dc186038c5cf68454e3e702e4b956 Mon Sep 17 00:00:00 2001 From: Logachev Nikita Date: Fri, 3 Jun 2022 14:29:07 +0300 Subject: [PATCH] fix linter issues --- src/parser/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/parser/index.js b/src/parser/index.js index 971c378..caa3242 100644 --- a/src/parser/index.js +++ b/src/parser/index.js @@ -514,20 +514,20 @@ export class Parser { this.matches('TICK') - let loopDetectorCursor = 0; + let loopDetectorCursor = 0 let loopDetector = false while (!this.eof() && this.peek().type !== 'TICK') { node.body.push(this.walk(node.body)) - loopDetectorCursor++; + loopDetectorCursor++ if (loopDetectorCursor >= 10000) { - loopDetector = true; - break; + loopDetector = true + break } } if (loopDetector) { while (!this.eof() && this.peek().type !== 'TICK') { - this.cursor++; + this.cursor++ } this.report('Infinite loop detected') }