Skip to content

Commit

Permalink
Wrap ambiguous ranges to appease rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Aug 16, 2021
1 parent 069e7c1 commit 0731bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/extract_files_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def any_multifile?(upload)

def multifile?(attachment)
blob = attachment.blob
chunk = blob.service.download_chunk(blob.key, 0..2.kilobytes)
chunk = blob.service.download_chunk(blob.key, 0..(2.kilobytes))

# tar.gz magic bytes
if chunk.bytes[0] == 0x1F && chunk.bytes[1] == 0x8B
Expand Down

0 comments on commit 0731bd0

Please sign in to comment.