lots of fixes from linters

This commit is contained in:
2025-04-26 13:07:18 -01:06
parent ab867a3eb4
commit a86607dd3a
81 changed files with 109 additions and 7856 deletions

View File

@@ -207,6 +207,8 @@ func EncodeEvent(eventIDHex *eventid.T, relays [][]byte, author []byte) (s []byt
pubkey := make([]byte, schnorr.PubKeyBytesLen)
if _, err = hex.DecBytes(pubkey, author); len(pubkey) == 32 {
tlv.WriteEntry(buf, tlv.Author, pubkey)
} else if chk.E(err) {
return
}
var bits5 []byte
if bits5, err = bech32.ConvertBits(buf.Bytes(), 8, 5, true); chk.D(err) {