diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-25 16:58:01 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-26 02:26:22 -0700 |
commit | e4552b3db07fb5fb4816eae89f7feed50e5cd629 (patch) | |
tree | 02ebccad9ee102aaffd3a2d3480b7669a885fbce | |
parent | fa93a16ede574df6159497a526153a9978b66dd1 (diff) | |
download | rainbows-e4552b3db07fb5fb4816eae89f7feed50e5cd629.tar.gz |
Rack::Lint requires File::exist? to be true on this, so there's no need to expand the path name to resolve it here.
-rw-r--r-- | lib/rainbows/rev.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb index 89f893a..e726ad2 100644 --- a/lib/rainbows/rev.rb +++ b/lib/rainbows/rev.rb @@ -118,7 +118,7 @@ module Rainbows # here since we can't get here without checking to_path first io = body.to_io if body.respond_to?(:to_io) io ||= ::IO.new($1.to_i) if body.to_path =~ %r{\A/dev/fd/(\d+)\z} - io ||= File.open(File.expand_path(body.to_path), 'rb') + io ||= File.open(body.to_path, 'rb') st = io.stat if st.socket? || st.pipe? |