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

2
dist/index.js generated vendored
View file

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

View file

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