mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-28 17:53:32 +02:00
nip86: omit empty result or error.
This commit is contained in:
parent
d4c31e3fc9
commit
684ff538ab
@ -6,6 +6,6 @@ type Request struct {
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Result any `json:"result"`
|
||||
Result any `json:"result,omitempty"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user