From 516fa571d90a0c93134c953c15ce84dd31b96b4b Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sun, 19 Sep 2021 21:41:35 -0700 Subject: [PATCH] remove unused variable. use elif instead of if for linux vs. bsd detection --- jc/parsers/ping_s.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jc/parsers/ping_s.py b/jc/parsers/ping_s.py index 545f6126..b9b92719 100644 --- a/jc/parsers/ping_s.py +++ b/jc/parsers/ping_s.py @@ -118,7 +118,6 @@ class state: packet_loss_percent = None time_ms = None duplicates = None - ping_error = None def _ipv6_in(line): @@ -493,7 +492,7 @@ def parse(data, raw=False, quiet=False): if s.os_detected and s.linux: output_line = _linux_parse(line, s) - if s.os_detected and s.bsd: + elif s.os_detected and s.bsd: output_line = _bsd_parse(line, s) # yield the output line if it has data