]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up ApplicationHelper#parse_wiki_links
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 18:11:21 +0000 (18:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 18:11:21 +0000 (18:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18667 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 223083d6f60de4ecfdb42b3d14ee49ba26a77be9..121de247faf1ed75051cd9fe50432598227e839b 100644 (file)
@@ -899,8 +899,9 @@ module ApplicationHelper
           # check if page exists
           wiki_page = link_project.wiki.find_page(page)
           url =
-            if anchor.present? && wiki_page.present? && (obj.is_a?(WikiContent) ||
-                 obj.is_a?(WikiContent::Version)) && obj.page == wiki_page
+            if anchor.present? && wiki_page.present? &&
+                 (obj.is_a?(WikiContent) || obj.is_a?(WikiContent::Version)) &&
+                 obj.page == wiki_page
               "##{anchor}"
             else
               case options[:wiki_links]