Merge branch 'main' into issue-208-java-junit-show-annotations-on-pr-changed-files

This commit is contained in:
Michal Dorner 2022-11-29 09:41:00 +01:00
commit 6af36d9ecf
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C
4 changed files with 32 additions and 8 deletions

10
dist/index.js generated vendored
View file

@ -1038,10 +1038,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,