Skip to content

Commit

Permalink
Add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Oct 24, 2023
1 parent 62a853d commit 593e7dc
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,10 @@ private String retrieveLicense(XMLEventReader xmlEventReader) throws XMLStreamEx
log.debug("Found the license url in eml: {}", url);
return url;
}
if (isStartElement(element, "citetitle")) {
var title = xmlEventReader.nextEvent().asCharacters().getData();
log.debug("Found license title in eml: {}", title);
return title;
}
} else if (isStartElement(element, "citetitle")) {
var title = xmlEventReader.nextEvent().asCharacters().getData();
log.debug("Found license title in eml: {}", title);
return title;
} else if (isStartElement(element, "pubDate")) {
return "";
}
Expand Down

0 comments on commit 593e7dc

Please sign in to comment.