lint: remove trailing whitespace

This commit is contained in:
Christoph Hartmann 2015-11-16 21:44:12 +01:00
parent 7fe79fdf57
commit 0de7549a64

View file

@ -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