mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
tighten if statements
This commit is contained in:
@ -346,7 +346,7 @@ def parse(data):
|
||||
|
||||
continue
|
||||
|
||||
if line.find('target') == 0 or line.find('pkts') == 1:
|
||||
elif line.find('target') == 0 or line.find('pkts') == 1:
|
||||
headers = []
|
||||
headers = [h for h in ' '.join(line.strip().split()).split() if h]
|
||||
headers.append("options")
|
||||
|
Reference in New Issue
Block a user