summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-14 13:18:37 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-14 13:18:37 +0000
commitde8d7aeb85e47b22c5ea43602e9caca8d81f8fca (patch)
treecbb5c0843ad0e7b95301df1789ada1577ef54105 /lib/redmine
parentb95131d75649724447055df7befc907b732108f5 (diff)
downloadredmine-de8d7aeb85e47b22c5ea43602e9caca8d81f8fca.tar.gz
redmine-de8d7aeb85e47b22c5ea43602e9caca8d81f8fca.zip
remove spaces inside {} of lib/redmine/thumbnail.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20371 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/thumbnail.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/thumbnail.rb b/lib/redmine/thumbnail.rb
index 9455e918e..1ab13dead 100644
--- a/lib/redmine/thumbnail.rb
+++ b/lib/redmine/thumbnail.rb
@@ -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