code clean up lib/redmine/platform.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6002 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-06-08 01:21:06 +00:00
parent 0d85f26976
commit 18229f2f30
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ module Redmine
module Platform
class << self
def mswin?
(RUBY_PLATFORM =~ /(:?mswin|mingw)/) || (RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
(RUBY_PLATFORM =~ /(:?mswin|mingw)/) ||
(RUBY_PLATFORM == 'java' && (ENV['OS'] || ENV['os']) =~ /windows/i)
end
end
end