Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Remove unused argument from function in order.utils

IKarbowiak2f4c50b9cc22
diff --git a/saleor/order/utils.py b/saleor/order/utils.py
index bc76dd9482..737442b2be 100644
--- a/saleor/order/utils.py
+++ b/saleor/order/utils.py
@@ -324,7 +324,7 @@ def get_valid_shipping_methods_for_order(order: Order):
)
-def get_products_voucher_discount_for_order(order, voucher):
+def get_products_voucher_discount_for_order(voucher):
"""Calculate products discount value for a voucher, depending on its type."""
prices = None
if not prices: