fixed net weight parsing

This commit is contained in:
leca 2024-11-14 13:11:13 +03:00
parent e5772bcad3
commit 2676d8083e
1 changed files with 1 additions and 3 deletions

View File

@ -14,8 +14,6 @@ class Parser constructor() {
text = text.replace(found, "")
netWeight = stripNetWeight(found)
return Triple(text, netWeight, found)
} else {
return Triple(text, 0.0, "")
}
}
return Triple("", 0.0, "")
@ -48,4 +46,4 @@ class Parser constructor() {
return AbstractProduct(0, "", name, netWeight, "", 0, unitNumber)
}
}
}