diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-31 09:57:05 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-31 09:57:05 -0700 |
commit | 14b9553818265ecc35c037adfe479320e3a70e34 (patch) | |
tree | ec8f36c6f929f0c0b56f062484a280d6e645d61e /lib/chef/chef_fs/file_system/repository/file_system_entry.rb | |
parent | f051b6e7912086edc03747f4b1c0285bfb6597f5 (diff) | |
download | chef-lcg/weirich-semantic-block.tar.gz |
For Discussion: Weirich Semantic Block stylelcg/weirich-semantic-block
Style/BlockDelimiters:
Enabled: true
EnforcedStyle: semantic
See, eg:
https://github.com/rubocop-hq/ruby-style-guide/issues/162
http://www.virtuouscode.com/2011/07/26/the-procedurefunction-block-convention-in-ruby/
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/chef_fs/file_system/repository/file_system_entry.rb')
-rw-r--r-- | lib/chef/chef_fs/file_system/repository/file_system_entry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/file_system/repository/file_system_entry.rb b/lib/chef/chef_fs/file_system/repository/file_system_entry.rb index 7c2d3e1522..279e2a801f 100644 --- a/lib/chef/chef_fs/file_system/repository/file_system_entry.rb +++ b/lib/chef/chef_fs/file_system/repository/file_system_entry.rb @@ -82,7 +82,7 @@ class Chef # Except cookbooks and data bag dirs, all things must be json files Dir.entries(file_path).sort .map { |child_name| make_child_entry(child_name) } - .select { |new_child| new_child.fs_entry_valid? && can_have_child?(new_child.name, new_child.dir?) } + .select do |new_child| new_child.fs_entry_valid? && can_have_child?(new_child.name, new_child.dir?) end rescue Errno::ENOENT raise Chef::ChefFS::FileSystem::NotFoundError.new(self, $!) end |