Skip to content

Commit

Permalink
Rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
emrojo committed Oct 18, 2023
1 parent bf3c3c3 commit ce82b0e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/models/qc_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,7 @@ def has_qc_files # rubocop:todo Metrics/MethodLength
def add_qc_file(file, filename = nil) # rubocop:todo Metrics/MethodLength

Check failure on line 13 in app/models/qc_file.rb

View workflow job for this annotation

GitHub Actions / rubocop

Lint/RedundantCopDisableDirective: Unnecessary disabling of `Metrics/MethodLength`.

Check failure on line 13 in app/models/qc_file.rb

View workflow job for this annotation

GitHub Actions / rubocop

Lint/RedundantCopDisableDirective: Unnecessary disabling of `Metrics/MethodLength`.
opts = { uploaded_data: { tempfile: file, filename: filename } }
opts[:filename] = filename unless filename.nil?
if file.present?
original_filename = filename
instance = qc_files.new(opts)
instance.save
instance.update(filename: original_filename)
instance.reload
instance.update(filename: original_filename)
instance.reload
instance
end
qc_files.create!(opts) if file.present?
end

def update_qc_values_with_parser(_parser)
Expand Down

0 comments on commit ce82b0e

Please sign in to comment.