Skip to content

Commit

Permalink
[Improve] Use StringUtils.isNotBlank instead of StringUtils.isNotEmpty (
Browse files Browse the repository at this point in the history
  • Loading branch information
xxzuo authored Dec 25, 2023
1 parent 0e64672 commit aac6290
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private String getDangerArgs(String param) {
@JsonIgnore
public String getMavenWorkHome() {
String buildHome = this.getAppSource().getAbsolutePath();
if (StringUtils.isNotEmpty(this.getPom())) {
if (StringUtils.isNotBlank(this.getPom())) {
buildHome =
new File(buildHome.concat("/").concat(this.getPom())).getParentFile().getAbsolutePath();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public void trigger(Long appId, @Nullable String savepointPath, @Nullable Boolea
public Boolean remove(Long id, Application appParam) throws InternalException {
SavePoint savePoint = getById(id);
try {
if (StringUtils.isNotEmpty(savePoint.getPath())) {
if (StringUtils.isNotBlank(savePoint.getPath())) {
appParam.getFsOperator().delete(savePoint.getPath());
}
return removeById(id);
Expand Down

0 comments on commit aac6290

Please sign in to comment.