Fix the detection if the configs are initialized

This commit is contained in:
Dmitrii Okunev
2024-10-21 23:10:01 +01:00
parent baafb56c24
commit deeae45f3a
9 changed files with 132 additions and 4 deletions

View File

@@ -151,7 +151,9 @@ func (RawMessage) GetOrder() int {
)
}
func (RawMessage) IsInitialized() bool {
return false
panic(
"the value is not parsed; don't use the platform config directly, and use function GetPlatformConfig instead",
)
}
func (m *RawMessage) UnmarshalJSON(b []byte) error {