mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
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
This commit is contained in:
parent
4ec384d5a6
commit
e551c0cb00
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user