chore: run modernize (#24356)
This commit is contained in:
@@ -157,7 +157,7 @@ type AppParams map[string]json.RawMessage
|
||||
// object. If it exists, it'll be decoded and returned. Otherwise, the provided
|
||||
// ParamSimulator is used to generate a random value or default value (eg: in the
|
||||
// case of operation weights where Rand is not used).
|
||||
func (sp AppParams) GetOrGenerate(key string, ptr interface{}, r *rand.Rand, ps ParamSimulator) {
|
||||
func (sp AppParams) GetOrGenerate(key string, ptr any, r *rand.Rand, ps ParamSimulator) {
|
||||
if v, ok := sp[key]; ok && v != nil {
|
||||
err := json.Unmarshal(v, ptr)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user