summaryrefslogtreecommitdiff
path: root/lib/chef/data_bag.rb
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2016-02-16 10:51:11 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2016-02-16 19:07:55 -0800
commit4db706fcce25b6d269a1b232e316083ae1a45b9b (patch)
tree7be29c2e270499ea5bfdd7e3f2831b8f8d88cf23 /lib/chef/data_bag.rb
parent2bfb3d37acdd9a71c17cd3ac28fed5e9e53de4ee (diff)
downloadchef-4db706fcce25b6d269a1b232e316083ae1a45b9b.tar.gz
Fix rubocop warnings
Diffstat (limited to 'lib/chef/data_bag.rb')
-rw-r--r--lib/chef/data_bag.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/data_bag.rb b/lib/chef/data_bag.rb
index 2852055203..fb6615d741 100644
--- a/lib/chef/data_bag.rb
+++ b/lib/chef/data_bag.rb
@@ -98,8 +98,9 @@ class Chef
unless File.directory?(path)
raise Chef::Exceptions::InvalidDataBagPath, "Data bag path '#{path}' is invalid"
end
-
- names += Dir.glob(File.join(Chef::Util::PathHelper.escape_glob_dir(path), "*")).map{|f|File.basename(f)}.sort
+
+ names += Dir.glob(File.join(
+ Chef::Util::PathHelper.escape_glob_dir(path), "*")).map { |f| File.basename(f) }.sort
end
names.inject({}) { |h, n| h[n] = n; h }
else