summaryrefslogtreecommitdiff
path: root/lib/gitlab/email/attachment_uploader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/email/attachment_uploader.rb')
-rw-r--r--lib/gitlab/email/attachment_uploader.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/email/attachment_uploader.rb b/lib/gitlab/email/attachment_uploader.rb
index a826519b2dd..3323ce60158 100644
--- a/lib/gitlab/email/attachment_uploader.rb
+++ b/lib/gitlab/email/attachment_uploader.rb
@@ -23,8 +23,8 @@ module Gitlab
content_type: attachment.content_type
}
- link = UploadService.new(project, file).execute
- attachments << link if link
+ uploader = UploadService.new(project, file).execute
+ attachments << uploader.to_h if uploader
ensure
tmp.close!
end