]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to SearchHelper
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Nov 2020 14:55:34 +0000 (14:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Nov 2020 14:55:34 +0000 (14:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20234 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/search_helper.rb

index 512482e580b2cac2d4a471f846f13880253e3a0b..f9f0a73c8aa227164014a8215cb8ef98ddf12eb2 100644 (file)
@@ -20,6 +20,7 @@
 module SearchHelper
   def highlight_tokens(text, tokens)
     return text unless text && tokens && !tokens.empty?
+
     re_tokens = tokens.collect {|t| Regexp.escape(t)}
     regexp = Regexp.new "(#{re_tokens.join('|')})", Regexp::IGNORECASE
     result = +''
@@ -58,6 +59,7 @@ module SearchHelper
     results_by_type.keys.sort_by {|k| results_by_type[k]}.reverse_each do |t|
       c = results_by_type[t]
       next if c == 0
+
       text = "#{type_label(t)} (#{c})"
       links << link_to(h(text), :q => params[:q], :titles_only => params[:titles_only],
                        :all_words => params[:all_words], :scope => params[:scope], t => 1)