Update dist/index.js

This commit is contained in:
Michal Dorner 2022-11-29 08:55:49 +01:00
parent a91086638b
commit 86d6ec5dd5
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C
2 changed files with 7 additions and 6 deletions

10
dist/index.js generated vendored
View file

@ -1037,10 +1037,12 @@ class JavaJunitParser {
const details = typeof failure === 'object' ? failure._ : failure;
let filePath;
let line;
const src = this.exceptionThrowSource(details);
if (src) {
filePath = src.filePath;
line = src.line;
if (details != null) {
const src = this.exceptionThrowSource(details);
if (src) {
filePath = src.filePath;
line = src.line;
}
}
return {
path: filePath,

View file

@ -128,8 +128,7 @@ export class JavaJunitParser implements TestParser {
let filePath
let line
if(details != null)
{
if (details != null) {
const src = this.exceptionThrowSource(details)
if (src) {
filePath = src.filePath