Skip to content

Commit

Permalink
Fix issue causing Rubocop to explode
Browse files Browse the repository at this point in the history
rubocop#9333: rubocop/rubocop#9333
  • Loading branch information
ananace committed Mar 9, 2021
1 parent 1630d1e commit 69514ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/k8s_resource/kubectl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def content_diff(content, store: true)
delete_merge.call(target_value[i], x)
end
hash1[key] = target_value - [{}]
else
hash1.delete(key) if hash1.key?(key) && target_value == value
elsif hash1.key?(key) && target_value == value
hash1.delete(key)
end
hash1.delete(key) if hash1.key?(key) && hash1[key].empty?
end
Expand Down

0 comments on commit 69514ed

Please sign in to comment.