From b098fb75978c08d5ec849237fb651dae3254383d Mon Sep 17 00:00:00 2001 From: Zhiguo Wu Date: Mon, 6 Jan 2025 18:02:22 +0800 Subject: [PATCH] codestyle --- .../manager/server/service/impl/ComponentServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java index b703eeb2..590c9184 100644 --- a/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java +++ b/bigtop-manager-server/src/main/java/org/apache/bigtop/manager/server/service/impl/ComponentServiceImpl.java @@ -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); }