Skip to content

Commit

Permalink
nip86: omit empty result or error.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Jul 12, 2024
1 parent d4c31e3 commit 684ff53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nip86/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ type Request struct {
}

type Response struct {
Result any `json:"result"`
Result any `json:"result,omitempty"`
Error string `json:"error,omitempty"`
}

0 comments on commit 684ff53

Please sign in to comment.