From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 13:18:21 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/SpaceInsideParens in app/controllers/application_control... X-Git-Tag: 4.2.0~1387 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4a60ebd848eb4268d060a69ea6c55de12a2a713a;p=redmine.git cleanup: rubocop: fix Layout/SpaceInsideParens in app/controllers/application_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19253 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index bf67f51db..717f39125 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -294,7 +294,6 @@ Layout/SpaceInsideHashLiteralBraces: # SupportedStyles: space, no_space Layout/SpaceInsideParens: Exclude: - - 'app/controllers/application_controller.rb' - 'app/helpers/issues_helper.rb' - 'app/models/auth_source_ldap.rb' - 'app/models/repository/cvs.rb' diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 02612e36f..62232ea06 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -365,7 +365,7 @@ class ApplicationController < ActionController::Base def find_attachments if (attachments = params[:attachments]).present? att = attachments.values.collect do |attachment| - Attachment.find_by_token( attachment[:token] ) if attachment[:token].present? + Attachment.find_by_token(attachment[:token]) if attachment[:token].present? end att.compact! end