From d6357691b091d4e8a8a4187acbcb14edc5c15519 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 18 Nov 2020 16:15:35 +0000 Subject: [PATCH] not use semicolons to terminate expression at SearchController git-svn-id: http://svn.redmine.org/redmine/trunk@20418 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/search_controller.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index aa408c70a..0866f5b67 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -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 -- 2.39.5