Skip to content

Commit

Permalink
Simply Platform#null_device to just use File::NULL
Browse files Browse the repository at this point in the history
It was introduced in Ruby 1.9.3 way older that our minimum required version
(https://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/NEWS)
  • Loading branch information
p0deje committed Mar 6, 2019
1 parent 4463d94 commit 4f46c04
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rb/lib/selenium/webdriver/common/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,7 @@ def cygwin?
end

def null_device
@null_device ||= if defined?(File::NULL)
File::NULL
else
Platform.windows? ? 'NUL' : '/dev/null'
end
File::NULL
end

def wrap_in_quotes_if_necessary(str)
Expand Down

0 comments on commit 4f46c04

Please sign in to comment.