Replace unnecessary loop (#1105)

Signed-off-by: Rosen Penev <[email protected]>
This commit is contained in:
Rosen Penev
2023-08-05 09:45:32 -05:00
committed by GitHub
parent 965260e3cb
commit ee8124ed7a
@@ -364,10 +364,8 @@ String UserTextIdentificationFrame::toString() const
{
// first entry is the description itself, drop from values list
StringList l = fieldList();
for(auto it = l.begin(); it != l.end(); ++it) {
l.erase(it);
break;
}
if(!l.isEmpty())
l.erase(l.begin());
return "[" + description() + "] " + l.toString();
}