Skip to content

Commit

Permalink
Disable rubocop Lint/NonLocalExitFromIterator for Package#dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira committed Sep 19, 2018
1 parent c725ef3 commit 3e9fac7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/app/controllers/webui/package_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def linking_packages
render_dialog
end

# rubocop:disable Lint/NonLocalExitFromIterator
def dependency
dependant_project = Project.find_by_name(params[:dependant_project]) || Project.find_remote_project(params[:dependant_project]).try(:first)
unless dependant_project
Expand Down Expand Up @@ -135,6 +136,7 @@ def dependency
redirect_back(fallback_location: { action: :binary, project: params[:project], package: params[:package],
repository: @repository, arch: @arch, filename: @filename })
end
# rubocop:enable Lint/NonLocalExitFromIterator

def statistics
@arch = params[:arch]
Expand Down

0 comments on commit 3e9fac7

Please sign in to comment.