]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of lib/redmine/thumbnail.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 14 Nov 2020 13:18:37 +0000 (13:18 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 14 Nov 2020 13:18:37 +0000 (13:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20371 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/thumbnail.rb

index 9455e918e323a2d780e2aa2351ee5b488177fc2f..1ab13dead8aece73e772027825bf8096e662d769 100644 (file)
@@ -34,13 +34,13 @@ module Redmine
       return nil if is_pdf && !gs_available?
 
       unless File.exists?(target)
-        mime_type = File.open(source) {|f| MimeMagic.by_magic(f).try(:type) }
+        mime_type = File.open(source) {|f| MimeMagic.by_magic(f).try(:type)}
         return nil if mime_type.nil?
         return nil if !ALLOWED_TYPES.include? mime_type
         return nil if is_pdf && mime_type != "application/pdf"
 
         # Make sure we only invoke Imagemagick if the file type is allowed
-        unless File.open(source) {|f| ALLOWED_TYPES.include? MimeMagic.by_magic(f).try(:type) }
+        unless File.open(source) {|f| ALLOWED_TYPES.include? MimeMagic.by_magic(f).try(:type)}
           return nil
         end