mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-29 10:09:35 +02:00
nip86: omit empty result or error.
This commit is contained in:
@ -6,6 +6,6 @@ type Request struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Response struct {
|
type Response struct {
|
||||||
Result any `json:"result"`
|
Result any `json:"result,omitempty"`
|
||||||
Error string `json:"error,omitempty"`
|
Error string `json:"error,omitempty"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user