Skip to content

Commit

Permalink
Update ProcessManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Aug 14, 2024
1 parent 8d54881 commit 605167f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/config/ProcessManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ public static String getLatestHeaderFromHistory(String shortUrl, String headerNa
hisShortUrl = HelperPlus.removeUrlDefaultPort(hisShortUrl);
if (hisShortUrl.equalsIgnoreCase(shortUrl)) {
String headerLine = getter.getHeaderLine(true, historyMessage, headerName);
return headerLine;
if (StringUtils.isNotBlank(headerLine)){
return headerLine;
}
}
}
return null;
Expand Down Expand Up @@ -97,7 +99,9 @@ public static String getLatestHeaderFromSiteMap(String shortUrl, String headerNa
hisShortUrl = HelperPlus.removeUrlDefaultPort(hisShortUrl);
if (hisShortUrl.equalsIgnoreCase(shortUrl)) {
String headerLine = getter.getHeaderLine(true, historyMessage, headerName);
return headerLine;
if (StringUtils.isNotBlank(headerLine)){
return headerLine;
}
}
}
return null;
Expand Down

0 comments on commit 605167f

Please # to comment.