diff options
| author | Charlotte Koch <charlotte@magentastripe.com> | 2023-10-24 12:04:31 -0700 |
|---|---|---|
| committer | Charlotte Koch <dressupgeekout@gmail.com> | 2023-10-24 12:04:31 -0700 |
| commit | a2622a3e72167ca16899e30cd94680b29feab3e8 (patch) | |
| tree | 6e10cff63cdea59fae85062911204934170d25a4 | |
| parent | 1c8dc0461d0f54ded68df741775443762b7c6905 (diff) | |
Avoid needless double-assignment
| -rw-r--r-- | packingslip.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
