Skip to content

Commit 56026d6

Browse files
committed
lint
1 parent 47591d1 commit 56026d6

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

app/migration/cache_manager.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ def cache_school_partnerships
103103
def cache_teachers
104104
return if [@teachers_by_trn, @teachers_by_api_ect_training_record_id, @teachers_by_api_mentor_training_record_id].all?(&:present?)
105105

106-
@teachers_by_trn ||= ::Teacher.all.index_by(&:trn)
107-
@teachers_by_api_ect_training_record_id ||= ::Teacher.all.index_by(&:api_ect_training_record_id)
108-
@teachers_by_api_mentor_training_record_id ||= ::Teacher.all.index_by(&:api_mentor_training_record_id)
106+
@teachers_by_trn = ::Teacher.all.index_by(&:trn)
107+
@teachers_by_api_ect_training_record_id = ::Teacher.all.index_by(&:api_ect_training_record_id)
108+
@teachers_by_api_mentor_training_record_id = ::Teacher.all.index_by(&:api_mentor_training_record_id)
109109

110110
@cache_loads[:teachers] += 1
111111
end

app/migration/migrators/declaration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def delivery_partner_when_created(participant_declaration:)
7272
end
7373

7474
def payment_statement(participant_declaration:)
75-
if ecf_payment_statement_id = participant_declaration.payment_statement&.id
75+
if (ecf_payment_statement_id = participant_declaration.payment_statement&.id)
7676
statement_from_ecf_id(ecf_payment_statement_id)
7777
end
7878
end

app/models/migration/participant_declaration.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module Migration
22
class ParticipantDeclaration < Migration::Base
3-
43
BILLABLE_STATES = %w[eligible payable paid voided].freeze
54
REFUNDABLE_STATES = %w[awaiting_clawback clawed_back].freeze
65

spec/factories/migration/participant_declaration_factory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
cohort { FactoryBot.create(:migration_cohort) }
66

77
declaration_type { "started" }
8-
declaration_date { Faker::Date.between(from: 2.years.ago, to: 1.day.ago) }
8+
declaration_date { Time.zone.today }
99
course_identifier { "ecf-induction" }
1010
evidence_held { "other" }
1111
state { "submitted" }

spec/migration/migrators/declaration_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,3 @@ def setup_failure_state
8787
end
8888
end
8989
end
90-

0 commit comments

Comments
 (0)