don't print identifier in replaceable pointers when all is ok.
This commit is contained in:
@@ -313,7 +313,9 @@ func easyjson33014d6eEncodeFiatjafComNostr2(out *jwriter.Writer, in EntityPointe
|
|||||||
out.RawString(prefix)
|
out.RawString(prefix)
|
||||||
out.Uint(uint(in.Kind))
|
out.Uint(uint(in.Kind))
|
||||||
}
|
}
|
||||||
{
|
if in.Identifier == "" && in.Kind.IsReplaceable() {
|
||||||
|
// this is expected, no identifiers in replaceable events, so don't print
|
||||||
|
// but we do print in case there is an identifier, incorrectly, to assist debug
|
||||||
const prefix string = ",\"identifier\":"
|
const prefix string = ",\"identifier\":"
|
||||||
out.RawString(prefix)
|
out.RawString(prefix)
|
||||||
out.String(in.Identifier)
|
out.String(in.Identifier)
|
||||||
|
|||||||
Reference in New Issue
Block a user