diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-05-06 16:54:20 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-05-06 16:54:20 -0700 |
commit | bed3ecfb36c61ec78b93155ad4ae3f3a01a2f57f (patch) | |
tree | 9cb0c8fd6f4bdf274a5d3d07be8d2c07b773e3f4 /lib/chef/mixin | |
parent | b39cf567a0e39c989c85bfc92b5352a655eeac05 (diff) | |
download | chef-bed3ecfb36c61ec78b93155ad4ae3f3a01a2f57f.tar.gz |
Align all our comments with the code
Autocorrected with chefstyle after enabling that cop. It was very hard to read some complex autocorrected blocks w/o this.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/create_path.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/chef/mixin/create_path.rb b/lib/chef/mixin/create_path.rb index 6d6f66317e..26988556aa 100644 --- a/lib/chef/mixin/create_path.rb +++ b/lib/chef/mixin/create_path.rb @@ -53,14 +53,14 @@ class Chef private def create_dir(path) - # When doing multithreaded downloads into the file cache, the following - # interleaving raises an error here: - # - # thread1 thread2 - # File.directory?(create_path) <- false - # File.directory?(create_path) <- false - # Dir.mkdir(create_path) - # Dir.mkdir(create_path) <- raises Errno::EEXIST + # When doing multithreaded downloads into the file cache, the following + # interleaving raises an error here: + # + # thread1 thread2 + # File.directory?(create_path) <- false + # File.directory?(create_path) <- false + # Dir.mkdir(create_path) + # Dir.mkdir(create_path) <- raises Errno::EEXIST Chef::Log.trace("Creating directory #{path}") Dir.mkdir(path) rescue Errno::EEXIST |