one very small simplification

This commit is contained in:
David 2021-10-07 23:26:33 -04:00
parent 068ba8bfb0
commit 765d35b399

View File

@ -46,9 +46,8 @@ func (m *Message) parseTags() (map[string]string, error) {
m.parseIndex += len(tags[key]) + 1 m.parseIndex += len(tags[key]) + 1
} else if m.Raw[m.parseIndex+next] == ';' { } else if m.Raw[m.parseIndex+next] == ';' {
key := m.Raw[m.parseIndex : m.parseIndex+next] key := m.Raw[m.parseIndex : m.parseIndex+next]
m.parseIndex += next m.parseIndex += next + 1
tags[key] = "" tags[key] = ""
m.parseIndex++
} else { } else {
break break
} }