Avoid reporting an empty "from" value

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-01-17 23:12:35 -07:00
parent 342e3329e1
commit a602971146

View File

@@ -153,7 +153,11 @@ func (ent *Entry) SetAltSlice(val []string, from string) {
return
}
ent.altvalue = append(ent.altvalue, val...)
ent.from = ent.from + "," + from
if ent.from == "" {
ent.from = from
} else {
ent.from = ent.from + "," + from
}
}
/*