mirror of
https://github.com/inspec/inspec
synced 2024-11-23 21:23:29 +00:00
lint: remove trailing whitespace
This commit is contained in:
parent
7fe79fdf57
commit
0de7549a64
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ class LinuxPorts < PortsInfo
|
||||||
# parse each line
|
# parse each line
|
||||||
# 1 - Proto, 2 - Recv-Q, 3 - Send-Q, 4 - Local Address, 5 - Foreign Address, 6 - State, 7 - Inode, 8 - PID/Program name
|
# 1 - Proto, 2 - Recv-Q, 3 - Send-Q, 4 - Local Address, 5 - Foreign Address, 6 - State, 7 - Inode, 8 - PID/Program name
|
||||||
parsed = /^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/.match(line)
|
parsed = /^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/.match(line)
|
||||||
return {} if parsed.nil? || line.match(/^proto/i)
|
return {} if parsed.nil? || line.match(/^proto/i)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
# parse ip4 and ip6 addresses
|
# parse ip4 and ip6 addresses
|
||||||
|
|
Loading…
Reference in a new issue