Apply suggestions from code review

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Erik Krogh Kristensen
2023-03-02 22:14:17 +01:00
committed by GitHub
parent 88810420b1
commit 094a2b0c46
2 changed files with 3 additions and 3 deletions

View File

@@ -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) {

View File

@@ -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);
}
}