mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 10:55:23 -08:00
Update dist/index.js
This commit is contained in:
10
dist/index.js
generated
vendored
10
dist/index.js
generated
vendored
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user