summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-09-11 10:08:37 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-09-11 10:08:37 +0000
commite551c0cb0092088510c66dea3e8bcaf87f93c08e (patch)
tree702f98ca4c39030c0dff11110dd6af023f4bbf09 /lib
parent4ec384d5a62f875cc9faeb19ec8bb22cc135f2ed (diff)
downloadredmine-e551c0cb0092088510c66dea3e8bcaf87f93c08e.tar.gz
redmine-e551c0cb0092088510c66dea3e8bcaf87f93c08e.zip
Disable Lint/DuplicateBranch in lib/redmine/export/pdf.rb#107 (#35683).
git-svn-id: http://svn.redmine.org/redmine/trunk@21219 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/export/pdf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/redmine/export/pdf.rb b/lib/redmine/export/pdf.rb
index cba4167b4..3b9df94e1 100644
--- a/lib/redmine/export/pdf.rb
+++ b/lib/redmine/export/pdf.rb
@@ -104,10 +104,12 @@ module Redmine
atta = RDMPdfEncoding.attach(@attachments, attrname, "UTF-8")
if atta
return atta.diskfile
+ # rubocop:disable Lint/DuplicateBranch
elsif %r{/attachments/download/(?<id>[^/]+)/} =~ attrname and
atta = @attachments.find{|a| a.id.to_s == id} and
atta.readable? and atta.visible?
return atta.diskfile
+ # rubocop:enable Lint/DuplicateBranch
elsif %r{/attachments/thumbnail/(?<id>[^/]+)/(?<size>\d+)} =~ attrname and
atta = @attachments.find{|a| a.id.to_s == id} and
atta.readable? and atta.visible?