Skip to content

Commit

Permalink
Fix soonar
Browse files Browse the repository at this point in the history
  • Loading branch information
phhung-axonivy committed Dec 11, 2024
1 parent aef235c commit 3976bf9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import static com.axonivy.market.constants.EntityConstants.PRODUCT_MARKETPLACE_DATA;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ private Date getFirstTagPublishedDate(List<GHTag> gitHubTags) {
}
}
} catch (IOException e) {
throw new RuntimeException(e);
log.error("Get first tag published date failed: ", e);
}

return firstTagPublishedDate;
Expand All @@ -441,11 +441,15 @@ private List<GHTag> sortByTagCommitDate(List<GHTag> gitHubTags) {
}

private Date sortByCommitDate(GHTag gitHubTag) {
Date commitDate = null;
try {
return gitHubTag.getCommit() != null ? gitHubTag.getCommit().getCommitDate() : null;
if (gitHubTag.getCommit() != null) {
commitDate = gitHubTag.getCommit().getCommitDate();
}
} catch (IOException e) {
throw new RuntimeException(e);
log.error("Get first tag published date failed: ", e);
}
return commitDate;
}

private void updateProductFromReleasedVersions(Product product) {
Expand Down

0 comments on commit 3976bf9

Please sign in to comment.