mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-17 00:07:24 +00:00
Update contents of variable directly
Also, it makes the line shorter, allowing us to use one-line if syntax :)
This commit is contained in:
@@ -45,9 +45,7 @@ module Reporting
|
||||
OpenStruct.new(item: item, full_row: row, row: @builder.slice_and_format_row(row))
|
||||
}
|
||||
|
||||
if @report.skip_duplicate_rows?
|
||||
@computed_data = @computed_data.uniq { |data| data.row.to_h.values }
|
||||
end
|
||||
@computed_data.uniq! { |data| data.row.to_h.values } if @report.skip_duplicate_rows?
|
||||
|
||||
@computed_data
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user