diff options
author | Jos Backus <jos@catnook.com> | 2015-10-20 13:08:58 -0700 |
---|---|---|
committer | Jos Backus <jos@catnook.com> | 2015-10-20 13:08:58 -0700 |
commit | b705e745b398449e572f1ed582575eada2e4a471 (patch) | |
tree | 244ea576b8dbce62d5214819ba600ad8bb4b5459 | |
parent | 07b8d64b5794a5f7fd8255684d3dc7dc654dc438 (diff) | |
download | chef-b705e745b398449e572f1ed582575eada2e4a471.tar.gz |
Stop checking for nil here
node.tags should never be nil, always an Array. node.tags == nil would
be a bug.
-rw-r--r-- | lib/chef/recipe.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb index 262560f754..83f3f5564b 100644 --- a/lib/chef/recipe.rb +++ b/lib/chef/recipe.rb @@ -97,8 +97,6 @@ class Chef # true<TrueClass>:: If all the parameters are present # false<FalseClass>:: If any of the parameters are missing def tagged?(*tags) - return false if run_context.node[:tags].nil? - tags.each do |tag| return false unless run_context.node[:tags].include?(tag) end |