Skip to content

Commit e551c0c

Browse files
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
1 parent 4ec384d commit e551c0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/redmine/export/pdf.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ def get_image_filename(attrname)
104104
atta = RDMPdfEncoding.attach(@attachments, attrname, "UTF-8")
105105
if atta
106106
return atta.diskfile
107+
# rubocop:disable Lint/DuplicateBranch
107108
elsif %r{/attachments/download/(?<id>[^/]+)/} =~ attrname and
108109
atta = @attachments.find{|a| a.id.to_s == id} and
109110
atta.readable? and atta.visible?
110111
return atta.diskfile
112+
# rubocop:enable Lint/DuplicateBranch
111113
elsif %r{/attachments/thumbnail/(?<id>[^/]+)/(?<size>\d+)} =~ attrname and
112114
atta = @attachments.find{|a| a.id.to_s == id} and
113115
atta.readable? and atta.visible?

0 commit comments

Comments
 (0)