From 2676d8083e37f3d57bd732396240ea3bfcbb9d99 Mon Sep 17 00:00:00 2001 From: leca Date: Thu, 14 Nov 2024 13:11:13 +0300 Subject: [PATCH] fixed net weight parsing --- .../java/org/foxarmy/barcodescannerforemployees/Parser.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/foxarmy/barcodescannerforemployees/Parser.kt b/app/src/main/java/org/foxarmy/barcodescannerforemployees/Parser.kt index 91c2f68..f3edc19 100644 --- a/app/src/main/java/org/foxarmy/barcodescannerforemployees/Parser.kt +++ b/app/src/main/java/org/foxarmy/barcodescannerforemployees/Parser.kt @@ -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) } -} \ No newline at end of file +}