Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
cwisniew committed Dec 16, 2024
1 parent fb82de2 commit b498a84
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/net/rptools/maptool/model/HeroLabData.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public String parseXML(String xPathExpression, String delim) {
XML xmlObj = new XMLDocument(getStatBlock_xml());
results = String.join(delim, xmlObj.xpath(xPathExpression));


return results;
}

Expand All @@ -165,7 +164,6 @@ public JsonArray parseXmlToJson(String xPathExpression) {
return results;
}


public boolean refresh() {
return lastModified != getPortfolioLastModified();
}
Expand Down Expand Up @@ -299,7 +297,7 @@ public void setDirty(boolean isDirty) {
}

public String getPortfolioPath() {
if (portfolioPath == null) {
if (portfolioPath == null) {
setPortfolioPath("");
}

Expand All @@ -316,10 +314,9 @@ public File getPortfolioFile() {
if (portfolioPath == null || portfolioPath.isEmpty() || fileSyncPath.isEmpty()) {
return portfolioFile;
} else {
if (portfolioPath.startsWith(fileSyncPath)) {
if (portfolioPath.startsWith(fileSyncPath)) {
return new File(portfolioPath);
}
else {
} else {
return new File(fileSyncPath, portfolioPath);
}
}
Expand All @@ -336,7 +333,8 @@ public void setPortfolioFile(File portfolioFile) {
.relativize(portfolioFile.toPath())
.toString();
} catch (IllegalArgumentException e) {
log.error("Unable to relativize paths for: [{}] [{}]",
log.error(
"Unable to relativize paths for: [{}] [{}]",
portfolioFile,
AppPreferences.fileSyncPath.get());
portfolioPath = "";
Expand Down

0 comments on commit b498a84

Please sign in to comment.