about summary refs log tree commit homepage
path: root/lib/unicorn/configurator.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-04-08 22:48:44 +0000
committerEric Wong <e@80x24.org>2017-04-08 22:48:44 +0000
commitcb1337800dfaeaa0134e8c2a40815fd9174bf55a (patch)
tree9a7f5184ed77b82f0dc8dff7124b1b73c5c05e36 /lib/unicorn/configurator.rb
parent288b97bff81b13beba848602929d9254b3b4b150 (diff)
downloadunicorn-cb1337800dfaeaa0134e8c2a40815fd9174bf55a.tar.gz
These three cold call sites instruction sequence size by a few
hundred bytes combined since we no longer support Ruby 1.8.6.
The "?/" shorthand is esoteric and no longer avoids allocation
in Ruby 1.9+ (not that this is hot code).
Diffstat (limited to 'lib/unicorn/configurator.rb')
-rw-r--r--lib/unicorn/configurator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index 7fb9030..f34d38b 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -587,7 +587,7 @@ class Unicorn::Configurator
     # just let chdir raise errors
     path = File.expand_path(path)
     if config_file &&
-       config_file[0] != ?/ &&
+       ! config_file.start_with?('/') &&
        ! File.readable?("#{path}/#{config_file}")
       raise ArgumentError,
             "config_file=#{config_file} would not be accessible in" \