Skip to content

Commit

Permalink
[webui] Cleanup setting of issues in read_patchinfo action, part II
Browse files Browse the repository at this point in the history
The params hash isn't used afterwards and thus doesn't need to be written.
The :issueid was added twice to @issues, when params[:issue] was nil.
  • Loading branch information
bgeuken committed Jul 27, 2015
1 parent 7299aa1 commit a232ebd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,8 @@ def read_patchinfo
@issues << issue
end

if params[:issue].nil?
params[:issue] = [params[:issueid]]
end
if params[:issueid]
params[:issue] << params[:issueid]
@issues = params[:issue]
@issues = params[:issue].to_a << params[:issueid]
end
@category = @file.value(:category)
@rating = @file.value(:rating)
Expand Down

0 comments on commit a232ebd

Please sign in to comment.