1
0
Fork 0
forked from OpenNeo/impress

Remove weird unused begin/end block in ItemsController

This commit is contained in:
Emi Matchu 2024-02-27 14:47:02 -08:00
parent 19ebf4d78a
commit bdefeb53d6

View file

@ -4,7 +4,6 @@ class ItemsController < ApplicationController
def index def index
if @query if @query
begin
if params[:per_page] if params[:per_page]
per_page = params[:per_page].to_i per_page = params[:per_page].to_i
per_page = 50 if per_page && per_page > 50 per_page = 50 if per_page && per_page > 50
@ -53,7 +52,6 @@ class ItemsController < ApplicationController
} }
} }
end end
end
elsif params.has_key?(:ids) && params[:ids].is_a?(Array) elsif params.has_key?(:ids) && params[:ids].is_a?(Array)
@items = Item.find(params[:ids]) @items = Item.find(params[:ids])
assign_closeted! assign_closeted!