diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-06 09:56:31 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-03-06 09:56:31 -0800 |
commit | 9e679b833c2a3203a12102f9a1b024f87d0b23f2 (patch) | |
tree | e6e5946d5b37a88b7550e73282bf785ce283f961 /lib/chef/cookbook/chefignore.rb | |
parent | 95510896fdf938be5e8631b96719053805e04ec2 (diff) | |
download | chef-lcg/unused_method_argument.tar.gz |
fix Lint/UnusedMethodArgumentlcg/unused_method_argument
appends '_' to all unused method arguments, autogenerated from rubocop.
Diffstat (limited to 'lib/chef/cookbook/chefignore.rb')
-rw-r--r-- | lib/chef/cookbook/chefignore.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/chefignore.rb b/lib/chef/cookbook/chefignore.rb index aa9345e64e..4ead975597 100644 --- a/lib/chef/cookbook/chefignore.rb +++ b/lib/chef/cookbook/chefignore.rb @@ -65,7 +65,7 @@ class Chef end end - def readable_file_or_symlink?(path) + def readable_file_or_symlink?(_path) File.exist?(@ignore_file) && File.readable?(@ignore_file) && (File.file?(@ignore_file) || File.symlink?(@ignore_file)) end |