diff options
author | Jeremy Evans <code@jeremyevans.net> | 2022-05-10 10:55:21 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2022-05-25 08:33:11 -0700 |
commit | a6a66047c9af0ce0a014db7931f8b873cf1b113e (patch) | |
tree | 06feb7fb1fd36151992fba27042a5ac71cfdb6cc | |
parent | e1e85e80ee85942e0a47d06fc394d843fe883f25 (diff) | |
download | rack-a6a66047c9af0ce0a014db7931f8b873cf1b113e.tar.gz |
Remove unnecessary conditional in rack/rewindable_input.rb
We no longer support Ruby 1.8.
-rw-r--r-- | lib/rack/rewindable_input.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/rewindable_input.rb b/lib/rack/rewindable_input.rb index ec4d4fc5..730c6a28 100644 --- a/lib/rack/rewindable_input.rb +++ b/lib/rack/rewindable_input.rb @@ -83,7 +83,7 @@ module Rack # access it because we have the file handle open. @rewindable_io = Tempfile.new('RackRewindableInput') @rewindable_io.chmod(0000) - @rewindable_io.set_encoding(Encoding::BINARY) if @rewindable_io.respond_to?(:set_encoding) + @rewindable_io.set_encoding(Encoding::BINARY) @rewindable_io.binmode # :nocov: if filesystem_has_posix_semantics? |