not use semicolons to terminate expression at SearchController

git-svn-id: http://svn.redmine.org/redmine/trunk@20418 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-11-18 16:15:35 +00:00
parent 0fd42d43bd
commit d6357691b0

View File

@@ -85,7 +85,10 @@ class SearchController < ApplicationController
end
respond_to do |format|
format.html { render :layout => false if request.xhr? }
format.api { @results ||= []; render :layout => false }
format.api do
@results ||= []
render :layout => false
end
end
end
end