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

app/helpers/queries_helper.rb

index 2f8c474877bb35ea94b582a7bf9be20568fb4936..5d7c50f50b1cf0f081c5019a1993b7d09479d9a6 100644 (file)
@@ -158,6 +158,7 @@ module QueriesHelper
 
   def render_query_totals(query)
     return unless query.totalable_columns.present?
+
     totals = query.totalable_columns.map do |column|
       total_tag(column, query.total_for(column))
     end
@@ -307,6 +308,7 @@ module QueriesHelper
       scope = scope.or(klass.where(:project_id => @project)) if @project
       @query = scope.find(params[:query_id])
       raise ::Unauthorized unless @query.visible?
+
       @query.project = @project
       session[session_key] = {:id => @query.id, :project_id => @query.project_id} if use_session
     elsif api_request? || params[:set_filter] || !use_session || session[session_key].nil? || session[session_key][:project_id] != (@project ? @project.id : nil)
@@ -396,6 +398,7 @@ module QueriesHelper
   # Renders a group of queries
   def query_links(title, queries)
     return '' if queries.empty?
+
     # links to #index on issues/show
     url_params =
       if controller_name == 'issues'