other useless quibbles.

This commit is contained in:
fiatjaf
2025-09-23 12:29:55 -03:00
parent 5727c1e477
commit 8b8693f4bf
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ func easyjsonDecodeFilter(in *jlexer.Lexer, out *Filter) {
out.IDs = (out.IDs)[:0]
}
for !in.IsDelim(']') {
id := [32]byte{}
id := ID{}
b := in.UnsafeBytes()
if len(b) == 64 {
hex.Decode(id[:], b)
@@ -76,7 +76,7 @@ func easyjsonDecodeFilter(in *jlexer.Lexer, out *Filter) {
out.Authors = (out.Authors)[:0]
}
for !in.IsDelim(']') {
pk := [32]byte{}
pk := PubKey{}
b := in.UnsafeBytes()
if len(b) == 64 {
hex.Decode(pk[:], b)