]> source.dussan.org Git - redmine.git/commitdiff
not use semicolons to terminate expression at SearchController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 18 Nov 2020 16:15:35 +0000 (16:15 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 18 Nov 2020 16:15:35 +0000 (16:15 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20418 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/search_controller.rb

index aa408c70a1940f1afbc6e229a0affb27ee4e97ed..0866f5b6769c1419f73ed38572f4d6e783d2976d 100644 (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