fix: simplify conditional logic in ParseDSDPlusMeta function

This commit is contained in:
Chrystian Huot 2026-05-17 08:57:35 -04:00
parent 7edf0df1ac
commit e813924647

View file

@ -44,9 +44,10 @@ func ParseDSDPlusMeta(call *Call, fp string) error {
lbl := false lbl := false
ptr := 0 ptr := 0
for i := 0; i < len(base); i++ { for i := 0; i < len(base); i++ {
if base[i] == '[' { switch base[i] {
case '[':
lbl = true lbl = true
} else if base[i] == ']' { case ']':
lbl = false lbl = false
} }
if !lbl && base[i] == '_' { if !lbl && base[i] == '_' {