Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ntqdinh-axonivy committed Sep 12, 2024
1 parent 6223837 commit a518125
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public ResponseEntity<PagedModel<ProductModel>> findProducts(
@PutMapping(SYNC)
@Operation(hidden = true)
public ResponseEntity<Message> syncProducts(@RequestHeader(value = AUTHORIZATION) String authorizationHeader,
@RequestParam(value = RESET_SYNC, required = false) Boolean resetSync) {
@RequestParam(value = RESET_SYNC, required = false) Boolean resetSync) {
String token = getBearerToken(authorizationHeader);
gitHubService.validateUserOrganization(token, GitHubConstants.AXONIVY_MARKET_ORGANIZATION_NAME);
if (Boolean.TRUE.equals(resetSync)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ private void syncProductsFromGitHubRepo() {
for (var content : ghContentEntity.getValue()) {
ProductFactory.mappingByGHContent(product, content);
}
if (!Objects.isNull(productRepository.findById(product.getId()).orElse(null))) {
if (Objects.nonNull(productRepository.findById(product.getId()).orElse(null))) {
return;
}
if (StringUtils.isNotBlank(product.getRepositoryName())) {
Expand Down

0 comments on commit a518125

Please sign in to comment.