From 8a33448b19de9b1f5fdee8a99042056986c87dde Mon Sep 17 00:00:00 2001 From: LamGC Date: Thu, 23 Jun 2022 03:52:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor(config):=20=E8=B0=83=E6=95=B4=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=AE=BF=E9=97=AE=E6=9D=83.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 迁移前, createDefaultRepositoryId 方法和 checkRepositoryLayout 方法已经是 Private 了, 迁移中出现差错导致变更为 internal, 现已修复. Pull Request #8 --- scalabot-app/src/main/kotlin/AppConfigs.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scalabot-app/src/main/kotlin/AppConfigs.kt b/scalabot-app/src/main/kotlin/AppConfigs.kt index 27700cb..326beb5 100644 --- a/scalabot-app/src/main/kotlin/AppConfigs.kt +++ b/scalabot-app/src/main/kotlin/AppConfigs.kt @@ -66,7 +66,7 @@ internal fun MavenRepositoryConfig.toRemoteRepository(proxyConfig: ProxyConfig): return builder.build() } -internal fun checkRepositoryLayout(layoutType: String): String { +private fun checkRepositoryLayout(layoutType: String): String { val type = layoutType.trim().lowercase() if (type != "default" && type != "legacy") { throw IllegalArgumentException("Invalid layout type (expecting 'default' or 'legacy')") @@ -76,7 +76,7 @@ internal fun checkRepositoryLayout(layoutType: String): String { private val repoNumberGenerator = AtomicInteger(1) -internal fun createDefaultRepositoryId(): String { +private fun createDefaultRepositoryId(): String { return "Repository-${repoNumberGenerator.getAndIncrement()}" }