]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to lib/redmine/thumbnail.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:42:08 +0000 (13:42 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:42:08 +0000 (13:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20261 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/thumbnail.rb

index b3507ba6873c10fca476afffd11d09760f64f550..9455e918e323a2d780e2aa2351ee5b488177fc2f 100644 (file)
@@ -32,6 +32,7 @@ module Redmine
     def self.generate(source, target, size, is_pdf = false)
       return nil unless convert_available?
       return nil if is_pdf && !gs_available?
+
       unless File.exists?(target)
         mime_type = File.open(source) {|f| MimeMagic.by_magic(f).try(:type) }
         return nil if mime_type.nil?
@@ -42,6 +43,7 @@ module Redmine
         unless File.open(source) {|f| ALLOWED_TYPES.include? MimeMagic.by_magic(f).try(:type) }
           return nil
         end
+
         directory = File.dirname(target)
         unless File.exists?(directory)
           FileUtils.mkdir_p directory
@@ -63,6 +65,7 @@ module Redmine
 
     def self.convert_available?
       return @convert_available if defined?(@convert_available)
+
       begin
         `#{shell_quote CONVERT_BIN} -version`
         @convert_available = $?.success?