Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinw66 committed Jan 6, 2025
1 parent 81faa86 commit b098fb7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public Boolean remove(Long id) {
ComponentDTO componentDTO = StackUtils.getComponentDTO(componentPO.getName());

// Only server component should be stopped before remove, client component can be removed directly.
if (componentDTO.getCategory().equals(ComponentCategories.SERVER) &&
Objects.equals(componentPO.getStatus(), HealthyStatusEnum.HEALTHY.getCode())) {
if (componentDTO.getCategory().equals(ComponentCategories.SERVER)
&& Objects.equals(componentPO.getStatus(), HealthyStatusEnum.HEALTHY.getCode())) {
throw new ApiException(ApiExceptionEnum.COMPONENT_IS_RUNNING);
}

Expand Down

0 comments on commit b098fb7

Please sign in to comment.