diff options
Diffstat (limited to 'lib/chef/cookbook/syntax_check.rb')
-rw-r--r-- | lib/chef/cookbook/syntax_check.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/syntax_check.rb b/lib/chef/cookbook/syntax_check.rb index 8b593eea81..555d2f6715 100644 --- a/lib/chef/cookbook/syntax_check.rb +++ b/lib/chef/cookbook/syntax_check.rb @@ -113,7 +113,7 @@ class Chef end def remove_uninteresting_ruby_files(file_list) - file_list.reject { |f| f =~ %r{#{Regexp.quote(cookbook_path)}/(files|templates)/} } + file_list.grep_v(%r{#{Regexp.quote(cookbook_path)}/(files|templates)/}) end def ruby_files |