From a2622a3e72167ca16899e30cd94680b29feab3e8 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Tue, 24 Oct 2023 12:04:31 -0700 Subject: Avoid needless double-assignment --- packingslip.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packingslip.rb b/packingslip.rb index 6578c9c..fa56b84 100644 --- a/packingslip.rb +++ b/packingslip.rb @@ -111,7 +111,7 @@ class MagentaStripeMedia::Manifest the_product = @catalog.detect { |product| product["CATALOG-NO"] == catalog_no } item = MagentaStripeMedia::Item.new - item.catalog_no = the_product["CATALOG-NO"] = catalog_no + item.catalog_no = catalog_no item.name = the_product["TITLE"] item.qty = data["qty"].to_i item.unit_price = the_product["UNIT-PRICE"].to_f -- cgit v1.2.3