mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Fix lint errors
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
08f2fcf4bb
commit
9786a467f1
1 changed files with 1 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue