Commit 2dbf9139 authored by ale's avatar ale
Browse files

Pass a pointer to json.Unmarshal

parent b0fa9575
......@@ -170,7 +170,7 @@ func ParseRatelimitConfig(data []byte) (RatelimitConfig, error) {
config[k] = v
}
if data != nil {
if err := json.Unmarshal(data, config); err != nil {
if err := json.Unmarshal(data, &config); err != nil {
return nil, err
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment