Skip to content

Commit

Permalink
Merge pull request #6736 from enkessler/patch-1
Browse files Browse the repository at this point in the history
Detect OS more consistently
  • Loading branch information
koic committed Feb 6, 2019
2 parents 9af7afe + c919977 commit 91dd462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/platform.rb
Expand Up @@ -5,7 +5,7 @@ module RuboCop
# on.
module Platform
def self.windows?
RUBY_PLATFORM =~ /cygwin|mswin|mingw|bccwin|wince|emx/
RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/
end
end
end

0 comments on commit 91dd462

Please sign in to comment.