summaryrefslogtreecommitdiff
path: root/lib/chef/recipe.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-16 08:58:36 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-16 13:15:38 -0700
commitd3670722ec82783b77d1c3d388e5d493f30c9bc2 (patch)
tree722eea75366c73b3a9863e318f57bc0ea0400925 /lib/chef/recipe.rb
parent321cda9a730ecb561ffa536eb47bc3397d378104 (diff)
downloadchef-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.rb2
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