From 094a2b0c46b25bfdfe71dc867885c0bccfd04343 Mon Sep 17 00:00:00 2001 From: Erik Krogh Kristensen Date: Thu, 2 Mar 2023 22:14:17 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Asger F --- .../src/com/semmle/ts/extractor/TypeScriptParser.java | 2 +- .../com/semmle/ts/extractor/TypeScriptWrapperOOMError.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java b/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java index f526b4f1b1a..5da39155347 100644 --- a/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java +++ b/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java @@ -409,7 +409,7 @@ public class TypeScriptParser { exitCode = parserWrapperProcess.waitFor(); } if (exitCode != null && (exitCode == NODEJS_EXIT_CODE_FATAL_ERROR || exitCode == NODEJS_EXIT_CODE_SIG_ABORT)) { - // this is caught in the auto-builder, and handled as an OOM. Check there is the message is changed. + // this is caught in the auto-builder, and handled as an OOM. Check there if the message is changed. return new TypeScriptWrapperOOMError("The TypeScript parser wrapper crashed, possibly from running out of memory.", e); } if (exitCode != null) { diff --git a/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptWrapperOOMError.java b/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptWrapperOOMError.java index 67f2d5a0763..caf5ef542c1 100644 --- a/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptWrapperOOMError.java +++ b/javascript/extractor/src/com/semmle/ts/extractor/TypeScriptWrapperOOMError.java @@ -4,6 +4,6 @@ import com.semmle.util.exception.ResourceError; public class TypeScriptWrapperOOMError extends ResourceError { public TypeScriptWrapperOOMError(String message, Throwable throwable) { - super(message,throwable); - } + super(message,throwable); + } }