Browse Source

Rubocop offenses

pull/470/head
Stéphane Meny 3 years ago
parent
commit
908bc4a452
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 14
      app/services/imports/case_logs_import_service.rb

14
app/services/imports/case_logs_import_service.rb

@ -148,6 +148,7 @@ module Imports
attributes["la_known"] = 1 # Defaulting to Yes (Required)
attributes["created_at"] = Date.parse(field_value(xml_doc, "meta", "created-date"))
attributes["updated_at"] = Date.parse(field_value(xml_doc, "meta", "modified-date"))
attributes
# Pending validation with new form
# case_log = CaseLog.new(attributes)
@ -320,8 +321,6 @@ module Imports
"X"
when "Refused"
"R"
else
nil
end
end
@ -336,8 +335,6 @@ module Imports
"X"
when "Refused"
"R"
else
nil
end
end
@ -392,11 +389,7 @@ module Imports
def string_or_nil(xml_doc, attribute)
str = field_value(xml_doc, "xmlns", attribute)
if str.blank?
nil
else
str
end
str.presence
end
def ethnic_group(ethnic)
@ -419,8 +412,6 @@ module Imports
when 17
# Refused
5
else
nil
end
end
@ -456,6 +447,5 @@ module Imports
0
end
end
end
end

Loading…
Cancel
Save