Skip to content

Commit

Permalink
Run linter
Browse files Browse the repository at this point in the history
This corrects a number of linting issues in the new version of Rubocop.
  • Loading branch information
thomasleese committed Dec 21, 2023
1 parent f34ee4e commit 299535e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ def initial_attributes(assessment_section)

super.merge(
english_language_section_passed:
(
english_language_section(assessment)&.passed &&
application_form.send(self::EXEMPTION_ATTR)
),
english_language_section(assessment)&.passed &&
application_form.send(self::EXEMPTION_ATTR),
)
end

Expand Down
2 changes: 1 addition & 1 deletion app/jobs/fetch_malware_scan_results_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ def perform
Upload
.where(malware_scan_result: "pending")
.where("created_at < ?", 5.minutes.ago)
.each { |upload| FetchMalwareScanResult.call(upload:) }
.find_each { |upload| FetchMalwareScanResult.call(upload:) }
end
end
6 changes: 3 additions & 3 deletions app/lib/application_form_status_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def needs_references_verified?

def further_information_requests
@further_information_requests ||=
assessment&.further_information_requests&.to_a || []
assessment&.further_information_requests.to_a
end

def professional_standing_requests
Expand All @@ -258,11 +258,11 @@ def professional_standing_requests
end

def qualification_requests
@qualification_requests ||= assessment&.qualification_requests&.to_a || []
@qualification_requests ||= assessment&.qualification_requests.to_a
end

def reference_requests
@reference_requests ||= assessment&.reference_requests&.to_a || []
@reference_requests ||= assessment&.reference_requests.to_a
end

def overdue?(requestables:)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def change

ApplicationForm
.includes(:region)
.each do |application_form|
.find_each do |application_form|
region = application_form.region

application_form.update!(
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/example_data.rake
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def create_requestables(application_form, assessment, state)
end

def create_application_forms
Region.all.each do |region|
Region.all.find_each do |region|
application_form_traits_for(region).each do |traits|
application_form = FactoryBot.create(:application_form, *traits, region:)

Expand Down

0 comments on commit 299535e

Please sign in to comment.