From 8e08ad3befb1a3b5aa16c8fe0c3dd889f2de5eba Mon Sep 17 00:00:00 2001 From: 1l0 Date: Mon, 28 Oct 2024 20:21:16 +0900 Subject: [PATCH] remove unused err condition --- nip49/nip49.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/nip49/nip49.go b/nip49/nip49.go index db96685..c8e3708 100644 --- a/nip49/nip49.go +++ b/nip49/nip49.go @@ -54,9 +54,6 @@ func EncryptBytes(secretKey []byte, password string, logn uint8, ksb KeySecurity return "", fmt.Errorf("failed to start xchacha20poly1305: %w", err) } ciphertext := c2p1.Seal(nil, concat[2+16:2+16+24], secretKey, ad) - if err != nil { - return "", fmt.Errorf("failed to encrypt: %w", err) - } copy(concat[2+16+24+1:], ciphertext) bits5, err := bech32.ConvertBits(concat, 8, 5, true)