From 2ce1e1433414d46d6b2eb7a98301cb1a97c09fab Mon Sep 17 00:00:00 2001 From: yjieliang Date: Fri, 11 Aug 2023 15:31:54 +0800 Subject: [PATCH] =?UTF-8?q?pref:=E4=BC=98=E5=8C=96=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E7=BB=84/=E6=A0=87=E7=AD=BE=E9=87=8D=E5=90=8D=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99=E6=8F=90=E7=A4=BA=20#9312?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devops/process/service/label/PipelineGroupService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/service/label/PipelineGroupService.kt b/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/service/label/PipelineGroupService.kt index f111e8c91dc..8e2ccccbafb 100644 --- a/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/service/label/PipelineGroupService.kt +++ b/src/backend/ci/core/process/biz-base/src/main/kotlin/com/tencent/devops/process/service/label/PipelineGroupService.kt @@ -138,7 +138,7 @@ class PipelineGroupService @Autowired constructor( fun addGroup(userId: String, pipelineGroup: PipelineGroupCreate): Boolean { val count = pipelineGroupDao.countByName(dslContext, pipelineGroup.projectId, pipelineGroup.name) - if (count >= 1 ) { + if (count >= 1) { logger.warn("Fail to create the group $pipelineGroup by userId $userId") throw ErrorCodeException( errorCode = GROUP_IS_EXIST, @@ -165,7 +165,7 @@ class PipelineGroupService @Autowired constructor( fun updateGroup(userId: String, pipelineGroup: PipelineGroupUpdate): Boolean { val count = pipelineGroupDao.countByName(dslContext, pipelineGroup.projectId, pipelineGroup.name) - if (count >= 1 ) { + if (count >= 1) { logger.warn("Fail to create the group $pipelineGroup by userId $userId") throw ErrorCodeException( errorCode = GROUP_IS_EXIST,