From 684ff538abfcf0687627149399de325d12ff8e44 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 12 Jul 2024 13:44:43 -0300 Subject: [PATCH] nip86: omit empty result or error. --- nip86/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip86/types.go b/nip86/types.go index 322f3f6..c1ace3c 100644 --- a/nip86/types.go +++ b/nip86/types.go @@ -6,6 +6,6 @@ type Request struct { } type Response struct { - Result any `json:"result"` + Result any `json:"result,omitempty"` Error string `json:"error,omitempty"` }