Ignore empty identifiers

This commit is contained in:
andig 2021-05-11 10:54:47 +02:00
parent 005c0f8f14
commit 78a2273a47

View file

@ -146,7 +146,7 @@ func (d *dumper) Dump(name string, v interface{}) {
if v, ok := v.(api.Identifier); ok {
if id, err := v.Identify(); err != nil {
fmt.Fprintf(w, "Identifier:\t%v\n", err)
} else {
} else if id != "" {
fmt.Fprintf(w, "Identifier:\t%s\n", id)
}
}