about summary refs log tree commit homepage
path: root/lib/rainbows/rev.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-25 16:58:01 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-26 02:26:22 -0700
commite4552b3db07fb5fb4816eae89f7feed50e5cd629 (patch)
tree02ebccad9ee102aaffd3a2d3480b7669a885fbce /lib/rainbows/rev.rb
parentfa93a16ede574df6159497a526153a9978b66dd1 (diff)
downloadrainbows-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.
Diffstat (limited to 'lib/rainbows/rev.rb')
-rw-r--r--lib/rainbows/rev.rb2
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?