Fix lint errors

Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
Vasu1105 2021-05-14 16:28:13 +05:30
parent 08f2fcf4bb
commit 9786a467f1

View file

@ -566,6 +566,7 @@ module Inspec::Resources
# fe80::a00:27ff:fe32:ed09%enp0s3:9200
parsed_net_address = parsed[:local_addr].match(/(\S+):(\*|\d+)$/)
return nil if parsed_net_address.nil?
host = parsed_net_address[1]
port = parsed_net_address[2]
return nil if host.nil? && port.nil?