Add an underscore before unused method arguments rather than an empty splat operator so it's easier to understand what is being passed in.

This commit is contained in:
Cillian O'Ruanaidh
2020-06-13 13:09:09 +01:00
parent 293e8949a9
commit 6dbb6f3f09

View File

@@ -161,7 +161,7 @@ module OrderManagement
line_items.map(&:order).uniq.sum(&:payment_total)
end
def empty_cell(*)
def empty_cell(_line_items)
""
end
@@ -243,7 +243,7 @@ module OrderManagement
line_items.sum(&:quantity)
end
def total_label(*)
def total_label(_line_items)
I18n.t('admin.reports.total')
end