From 5462a82bfd6a32b1a717699d509c198c1c6cf7a7 Mon Sep 17 00:00:00 2001 From: zacyanliu Date: Thu, 28 Nov 2024 09:56:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20conan=20search=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=BD=93=E6=9F=A5=E8=AF=A2=E5=86=85=E5=AE=B9=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E6=97=B6=E8=BF=94=E5=9B=9E200#2804?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bkrepo/conan/service/impl/ConanSearchServiceImpl.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/backend/conan/biz-conan/src/main/kotlin/com/tencent/bkrepo/conan/service/impl/ConanSearchServiceImpl.kt b/src/backend/conan/biz-conan/src/main/kotlin/com/tencent/bkrepo/conan/service/impl/ConanSearchServiceImpl.kt index 4dc9ab4299..3b49c49421 100644 --- a/src/backend/conan/biz-conan/src/main/kotlin/com/tencent/bkrepo/conan/service/impl/ConanSearchServiceImpl.kt +++ b/src/backend/conan/biz-conan/src/main/kotlin/com/tencent/bkrepo/conan/service/impl/ConanSearchServiceImpl.kt @@ -27,10 +27,7 @@ package com.tencent.bkrepo.conan.service.impl -import com.tencent.bkrepo.common.api.constant.StringPool import com.tencent.bkrepo.common.metadata.service.packages.PackageService -import com.tencent.bkrepo.conan.constant.ConanMessageCode -import com.tencent.bkrepo.conan.exception.ConanSearchNotFoundException import com.tencent.bkrepo.conan.pojo.ConanInfo import com.tencent.bkrepo.conan.pojo.ConanSearchResult import com.tencent.bkrepo.conan.pojo.artifact.ConanArtifactInfo @@ -61,12 +58,6 @@ class ConanSearchServiceImpl : ConanSearchService { ): ConanSearchResult { val realPattern = pattern?.replace("*", ".*") val recipes = searchRecipes(projectId, repoName, realPattern, ignoreCase) - if (recipes.isEmpty()) { - throw ConanSearchNotFoundException( - ConanMessageCode.CONAN_SEARCH_NOT_FOUND, - pattern ?: StringPool.EMPTY, "$projectId/$repoName" - ) - } return ConanSearchResult(recipes) }