Skip to content

Commit

Permalink
feat: 创建仓库不返回存储凭证 #1492 (#1494)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan authored Nov 28, 2023
1 parent ff7cf80 commit 6f48172
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class RepositoryServiceImpl(
// 解析存储凭证
val credentialsKey = determineStorageKey(this)
// 确保存储凭证Key一定存在
val storageCredential = credentialsKey?.takeIf { it.isNotBlank() }?.let {
credentialsKey?.takeIf { it.isNotBlank() }?.let {
storageCredentialService.findByKey(it) ?: throw ErrorCodeException(
CommonMessageCode.RESOURCE_NOT_FOUND,
it,
Expand All @@ -259,7 +259,7 @@ class RepositoryServiceImpl(
key = event.getFullResourceKey(),
)
logger.info("Create repository [$repoCreateRequest] success.")
convertToDetail(repository, storageCredential)!!
convertToDetail(repository)!!
} catch (exception: DuplicateKeyException) {
logger.warn("Insert repository[$projectId/$name] error: [${exception.message}]")
getRepoDetail(projectId, name, type.name)!!
Expand Down

0 comments on commit 6f48172

Please sign in to comment.