Skip to content

Commit

Permalink
fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
samcoforma committed Nov 22, 2024
1 parent 6626fb0 commit f4cb83d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/models/evidence_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ class EvidenceSubmission < ApplicationRecord
belongs_to :user_account
has_kms_key
has_encrypted :template_metadata, key: :kms_key, **lockbox_options
# attr_accessor :upload_status, :delete_date
end
10 changes: 5 additions & 5 deletions app/sidekiq/lighthouse/document_upload.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def self.notify_client
def perform(user_icn, document_hash, user_account_uuid, claim_id, tracked_item_id)
@user_icn = user_icn
@document_hash = document_hash

evidence_submission = record_evidence_submission(claim_id, jid, tracked_item_id, user_account_uuid)
initialize_upload_document

Expand Down Expand Up @@ -145,10 +145,10 @@ def record_evidence_submission(claim_id, job_id, tracked_item_id, user_account_u
upload_status = BenefitsDocuments::Constants::UPLOAD_STATUS[:PENDING]

evidence_submission = EvidenceSubmission.find_or_create_by(claim_id:,
tracked_item_id:,
job_id:,
job_class:,
upload_status:)
tracked_item_id:,

Check failure on line 148 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

Check failure on line 148 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
job_id:,

Check failure on line 149 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

Check failure on line 149 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
job_class:,

Check failure on line 150 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

Check failure on line 150 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
upload_status:)

Check failure on line 151 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

Check failure on line 151 in app/sidekiq/lighthouse/document_upload.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/HashAlignment: Align the keys of a hash literal if they span more than one line.
evidence_submission.user_account = user_account
evidence_submission.save!
evidence_submission
Expand Down
2 changes: 1 addition & 1 deletion lib/lighthouse/benefits_documents/constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module Constants
PENDING: 'IN_PROGRESS',
FAILED: 'FAILED',
SUCCESS: 'SUCCESS'
}
}.freeze

Check failure on line 9 in lib/lighthouse/benefits_documents/constants.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/FirstHashElementIndentation: Indent the right brace the same as the start of the line where the left brace is.
end
end

Check failure on line 11 in lib/lighthouse/benefits_documents/constants.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/TrailingEmptyLines: Final newline missing.

0 comments on commit f4cb83d

Please sign in to comment.