Skip to content

Commit

Permalink
Merge pull request #3295 from jacobherrington/remove-duplicate-method…
Browse files Browse the repository at this point in the history
…-call-shipping-manifest

Remove a duplicate method call
  • Loading branch information
jacobherrington authored Aug 8, 2019
2 parents 8e8f0c7 + 6937e2e commit a06fe57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/app/models/spree/shipping_manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def items
states = {}
units.group_by(&:state).each { |state, iu| states[state] = iu.count }

line_item = units.first.line_item
variant = units.first.variant
ManifestItem.new(line_item, variant, units.length, states)
first_unit = units.first

ManifestItem.new(first_unit.line_item, first_unit.variant, units.length, states)
end
end.flatten
end
Expand Down

0 comments on commit a06fe57

Please sign in to comment.