summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Schaumburg <pschaumburg@tecracer.de>2020-03-30 15:17:11 +0200
committerPatrick Schaumburg <pschaumburg@tecracer.de>2020-03-30 15:17:20 +0200
commitac38083489f6272841eb3ed9e8e5650e39f4728e (patch)
tree81a0e8888aad74d2ab3840c3e3aa8926a748e6ce
parente8f9c444828bd275041dd6b10f02e3aabc72bfe9 (diff)
downloadchef-ac38083489f6272841eb3ed9e8e5650e39f4728e.tar.gz
fix rubocop
Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
-rw-r--r--lib/chef/resource/windows_firewall_rule.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_firewall_rule.rb b/lib/chef/resource/windows_firewall_rule.rb
index 95cb39477b..67e8bc91fa 100644
--- a/lib/chef/resource/windows_firewall_rule.rb
+++ b/lib/chef/resource/windows_firewall_rule.rb
@@ -255,9 +255,10 @@ class Chef
if protocol.start_with?("ICMP") && icmp_type.include?(":")
return icmp_type.split(":").all? { |type| (0..255).include?(type.to_i) }
end
- end
- return true # rubocop:disable Style/RedundantReturn:
+ else
+ true
+ end
end
end