From 024c52673d88fc16d99be0c82101fba4a347fed2 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Wed, 28 Sep 2022 08:27:19 +0200 Subject: [PATCH] another typo --- .../app/plugins/parser/services/code-parser-antlr-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/parser/services/code-parser-antlr-service.ts b/apps/remix-ide/src/app/plugins/parser/services/code-parser-antlr-service.ts index dcaccc97af..c413481e4c 100644 --- a/apps/remix-ide/src/app/plugins/parser/services/code-parser-antlr-service.ts +++ b/apps/remix-ide/src/app/plugins/parser/services/code-parser-antlr-service.ts @@ -24,7 +24,7 @@ export default class CodeParserAntlrService { worker: Worker parserStartTime: number = 0 workerTimer: NodeJS.Timer - parserTreshHold: number = 10 + parserTreshold: number = 10 parserTresholdSampleAmount = 3 cache: { [name: string]: { @@ -75,7 +75,7 @@ export default class CodeParserAntlrService { // calculate average of durations to determine if the parsing should be disabled const values = [...this.cache[file].blockDurations] const average = values.reduce((a, b) => a + b, 0) / values.length - if (average > this.parserTreshHold) { + if (average > this.parserTreshold) { this.cache[file].parsingEnabled = false } else { this.cache[file].parsingEnabled = true