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
|
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] == '_' {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue