Browse Source

Fix lint offences

pull/2539/head
Manny Dinssa 2 years ago
parent
commit
a45e291e65
  1. 2
      app/services/csv/lettings_log_csv_service.rb
  2. 2
      app/services/csv/sales_log_csv_service.rb

2
app/services/csv/lettings_log_csv_service.rb

@ -266,12 +266,10 @@ module Csv
end
def lettings_log_definitions
definitions = @user.variable_definitions.lettings
definitions.group_by { |record| [record.variable, record.definition] }
.map do |_, options|
exact_match = options.find { |definition| definition.year == @year && definition.user_type == @user.user_type }
next exact_match if exact_match

2
app/services/csv/sales_log_csv_service.rb

@ -170,12 +170,10 @@ module Csv
end
def sales_log_definitions
definitions = @user.variable_definitions.sales
definitions.group_by { |record| [record.variable, record.definition] }
.map do |_, options|
exact_match = options.find { |definition| definition.year == @year && definition.user_type == @user.user_type }
next exact_match if exact_match

Loading…
Cancel
Save