summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 15:28:46 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 15:28:46 +0000
commitd4a428f11edad6b2f3b9f394151024f918d9e48c (patch)
treecf64434370400a182119bed6783d44b7163e8a39 /app
parent3b27acb62042ed7c5699158c23f2dfcc1ed36871 (diff)
downloadredmine-d4a428f11edad6b2f3b9f394151024f918d9e48c.tar.gz
redmine-d4a428f11edad6b2f3b9f394151024f918d9e48c.zip
code cleanup: rubocop: fix Layout/ElseAlignment in app/helpers/attachments_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18713 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/attachments_helper.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb
index 476b93ef3..d03997c4b 100644
--- a/app/helpers/attachments_helper.rb
+++ b/app/helpers/attachments_helper.rb
@@ -33,13 +33,12 @@ module AttachmentsHelper
# :thumbails -- display thumbnails if enabled in settings
def link_to_attachments(container, options = {})
options.assert_valid_keys(:author, :thumbnails)
-
- attachments = if container.attachments.loaded?
- container.attachments
- else
- container.attachments.preload(:author).to_a
- end
-
+ attachments =
+ if container.attachments.loaded?
+ container.attachments
+ else
+ container.attachments.preload(:author).to_a
+ end
if attachments.any?
options = {
:editable => container.attachments_editable?,