mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 08:33:00 -06:00
fix: simplify conditional logic in ParseDSDPlusMeta function
This commit is contained in:
parent
7edf0df1ac
commit
e813924647
|
|
@ -44,9 +44,10 @@ func ParseDSDPlusMeta(call *Call, fp string) error {
|
|||
lbl := false
|
||||
ptr := 0
|
||||
for i := 0; i < len(base); i++ {
|
||||
if base[i] == '[' {
|
||||
switch base[i] {
|
||||
case '[':
|
||||
lbl = true
|
||||
} else if base[i] == ']' {
|
||||
case ']':
|
||||
lbl = false
|
||||
}
|
||||
if !lbl && base[i] == '_' {
|
||||
|
|
|
|||
Loading…
Reference in a new issue