mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user