]> source.dussan.org Git - redmine.git/commitdiff
Disable Lint/DuplicateBranch in lib/redmine/export/pdf.rb#107 (#35683).
authorMarius Balteanu <marius.balteanu@zitec.com>
Sat, 11 Sep 2021 10:08:37 +0000 (10:08 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Sat, 11 Sep 2021 10:08:37 +0000 (10:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@21219 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb

index cba4167b4927574b3e248646187a774d99181607..3b9df94e1386f9cdcd05747f77bb7b7d8c91ce8a 100644 (file)
@@ -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?