lib/physical/shipment.rb in physical-0.5.0 vs lib/physical/shipment.rb in physical-0.5.1
- old
+ new
@@ -17,13 +17,10 @@
@destination = destination
@service_code = service_code
@structures = structures
@packages = packages
@options = options
-
- return unless pallets.any?
-
- warn "[DEPRECATION] `pallets` is deprecated. Please use `structures` instead."
@pallets = pallets
+ warn "[DEPRECATION] `pallets` is deprecated. Please use `structures` instead." if pallets.any?
end
end
end