1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-24 13:18:21 +00:00
parent 2c786065fb
commit 4a60ebd848
2 changed files with 1 additions and 2 deletions

View File

@ -294,7 +294,6 @@ Layout/SpaceInsideHashLiteralBraces:
# SupportedStyles: space, no_space # SupportedStyles: space, no_space
Layout/SpaceInsideParens: Layout/SpaceInsideParens:
Exclude: Exclude:
- 'app/controllers/application_controller.rb'
- 'app/helpers/issues_helper.rb' - 'app/helpers/issues_helper.rb'
- 'app/models/auth_source_ldap.rb' - 'app/models/auth_source_ldap.rb'
- 'app/models/repository/cvs.rb' - 'app/models/repository/cvs.rb'

View File

@ -365,7 +365,7 @@ class ApplicationController < ActionController::Base
def find_attachments def find_attachments
if (attachments = params[:attachments]).present? if (attachments = params[:attachments]).present?
att = attachments.values.collect do |attachment| 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 end
att.compact! att.compact!
end end