mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-07-03 13:57:24 +00:00
fix(config): 修复潜在的无状况错误问题.
由于在 MavenRepositoryConfigSerializer 反序列化中过滤了 Json 的类型, 导致用户在配置中使用了错误的 Json 数据类型将不会有任何错误信息. 该改动已解决该问题.
This commit is contained in:
@ -227,7 +227,6 @@ internal class MavenRepositoryConfigSerializerTest {
|
||||
|
||||
// ------------------------------------
|
||||
|
||||
jsonObject.add("authentication", JsonArray())
|
||||
jsonObject.add("layout", mockk<JsonPrimitive> {
|
||||
every { asString }.returns(null)
|
||||
})
|
||||
|
Reference in New Issue
Block a user