mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-06 21:12:24 +00:00
fix the use of empty fields in the response
This commit is contained in:
@@ -37,7 +37,9 @@ func NewError(code int, message string, data any, id *json.RawMessage) *RPCRespo
|
||||
Error = map[string]any{
|
||||
"code": code,
|
||||
"message": message,
|
||||
"data": data,
|
||||
}
|
||||
if data != nil {
|
||||
Error["data"] = data
|
||||
}
|
||||
|
||||
return &RPCResponse{
|
||||
|
||||
Reference in New Issue
Block a user