Skip to content

Commit

Permalink
Fix Rubocop offenses automatically
Browse files Browse the repository at this point in the history
Fix Rubocop offenses with:

`bundle exec rake dev:lint:rubocop:auto_correct`
  • Loading branch information
eduardoj committed Mar 10, 2022
1 parent 244ccc1 commit 819154a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/app/controllers/webui/package_controller.rb
Expand Up @@ -468,9 +468,7 @@ def update_build_log

@log_chunk = get_log_chunk(@project, @package_name, @repo, @arch, chunk_start, chunk_end)
# retry the last chunk again, because build compare overwrites last log lines
if @log_chunk.length.zero? && !@first_request && !@finished
@log_chunk = get_log_chunk(@project, @package_name, @repo, @arch, chunk_start, chunk_end)
end
@log_chunk = get_log_chunk(@project, @package_name, @repo, @arch, chunk_start, chunk_end) if @log_chunk.length.zero? && !@first_request && !@finished

old_offset = @offset
@offset = [chunk_end, @size].min
Expand Down

0 comments on commit 819154a

Please sign in to comment.