Skip to content

Commit f631259

Browse files
committed
πŸ’„ rubocop fixes
1 parent eff5122 commit f631259

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

β€Žapp/controllers/hyrax/uploads_controller_decorator.rbβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ def handle_chunk(content_range, chunk)
1010
file_path = @upload.file.path
1111

1212
current_size = 0
13-
if file_path && File.exist?(file_path)
14-
File.open(file_path, 'r') { |f| current_size = f.size }
15-
end
13+
File.open(file_path, 'r') { |f| current_size = f.size } if file_path && File.exist?(file_path)
1614

1715
begin_of_chunk = content_range[/\ (.*?)-/, 1].to_i
1816

β€Žbundler.d/example.rbβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
override_gem "hyrax",
1414
github: "samvera/hyrax",
1515
ref: "d6330a1c048bd498da852325a502f8dba0467c11"
16-

0 commit comments

Comments
Β (0)