From 455c7a23b6fa1c29e1d8fcdd6f68577132728032 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Wed, 18 Jan 2023 21:38:46 +0000 Subject: [PATCH] nit - not necessary to be verbose --- nip42/nip42.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip42/nip42.go b/nip42/nip42.go index 767fe65..793e421 100644 --- a/nip42/nip42.go +++ b/nip42/nip42.go @@ -26,7 +26,7 @@ func CreateUnsignedAuthEvent(challenge, pubkey, relayURL string) nostr.Event { // ValidateAuthEvent checks whether event is a valid NIP-42 event for given challenge and relayURL. // The result of the validation is encoded in the ok bool. func ValidateAuthEvent(event *nostr.Event, challenge string, relayURL string) (pubkey string, ok bool) { - if ok, _ := event.CheckSignature(); ok == false { + if ok, _ := event.CheckSignature(); !ok { return "", false } if event.Kind != 22242 {