summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/create_path.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-13 09:50:23 +0000
committerThom May <thom@chef.io>2016-01-13 09:50:23 +0000
commit0e4b96f3414ef7d9599c70f2661bea8c2037aad5 (patch)
tree5e9b9424ad5b7e320f187ebd020a216bbdb5bf68 /lib/chef/mixin/create_path.rb
parent556e5f2d78b5c6de2f34d8dd655ee515ff317296 (diff)
downloadchef-tm/string_literals.tar.gz
Use double quotes by defaulttm/string_literals
This is an entirely mechanically generated (rubocop -a) change, to go along with chef/chefstyle#5 . We should pick something and use it consistently, and my opinion is that double quotes are the appropriate thing.
Diffstat (limited to 'lib/chef/mixin/create_path.rb')
-rw-r--r--lib/chef/mixin/create_path.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/create_path.rb b/lib/chef/mixin/create_path.rb
index 547224dda9..ee0f80448f 100644
--- a/lib/chef/mixin/create_path.rb
+++ b/lib/chef/mixin/create_path.rb
@@ -35,7 +35,7 @@ class Chef
if file_path.kind_of?(String)
file_path = File.expand_path(file_path).split(File::SEPARATOR)
- file_path.shift if file_path[0] == ''
+ file_path.shift if file_path[0] == ""
# Check if path starts with a separator or drive letter (Windows)
unless file_path[0].match("^#{File::SEPARATOR}|^[a-zA-Z]:")
file_path[0] = "#{File::SEPARATOR}#{file_path[0]}"