diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-09-16 08:58:36 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-09-16 13:15:38 -0700 |
commit | d3670722ec82783b77d1c3d388e5d493f30c9bc2 (patch) | |
tree | 722eea75366c73b3a9863e318f57bc0ea0400925 /lib/chef/recipe.rb | |
parent | 321cda9a730ecb561ffa536eb47bc3397d378104 (diff) | |
download | chef-d3670722ec82783b77d1c3d388e5d493f30c9bc2.tar.gz |
Resolve Style/RedundantCondition cop
We have some extra conditionals that aren't getting us anything
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/recipe.rb')
-rw-r--r-- | lib/chef/recipe.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb index 4009677936..972edf9649 100644 --- a/lib/chef/recipe.rb +++ b/lib/chef/recipe.rb @@ -122,7 +122,7 @@ class Chef end def to_s - "cookbook: #{cookbook_name ? cookbook_name : "(none)"}, recipe: #{recipe_name ? recipe_name : "(none)"} " + "cookbook: #{cookbook_name || "(none)"}, recipe: #{recipe_name || "(none)"} " end def inspect |