diff options
author | Xabier de Zuazo <xabier@onddo.com> | 2014-11-27 23:06:34 +0100 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-01-27 12:02:43 -0800 |
commit | 48916743c66ea57443533ca574da09c19ecc45b9 (patch) | |
tree | 2dcab0e51de9e658c15582469ed3dce35d2063d7 /lib/chef/util/path_helper.rb | |
parent | d728f5b8d8179bd81b2ff44ef8ddae89e573bebe (diff) | |
download | chef-48916743c66ea57443533ca574da09c19ecc45b9.tar.gz |
Remove some RUBY_VERSION < 2 comparisons (ruby < 2 specific, issue #2497)
Diffstat (limited to 'lib/chef/util/path_helper.rb')
-rw-r--r-- | lib/chef/util/path_helper.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/util/path_helper.rb b/lib/chef/util/path_helper.rb index 26c9c76fe5..a5485a864b 100644 --- a/lib/chef/util/path_helper.rb +++ b/lib/chef/util/path_helper.rb @@ -101,9 +101,6 @@ class Chef # Produces a comparable path. def self.canonical_path(path, add_prefix=true) - # Rather than find an equivalent for File.absolute_path on 1.8.7, just bail out - raise NotImplementedError, "This feature is not supported on Ruby versions < 1.9" if RUBY_VERSION.to_f < 1.9 - # First remove extra separators and resolve any relative paths abs_path = File.absolute_path(path) |