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