Update per reviewer's suggestion for better code

This commit is contained in:
David Murphy 2021-06-04 16:48:04 -06:00 committed by Megan Wilhite
parent 98e3a8e566
commit 92d92dc746

View file

@ -570,31 +570,17 @@ def _ip_route_linux():
# need to fake similar output to that provided by netstat
# to maintain output format
if comps[0] == "unicast":
continue
if comps[0] == "broadcast":
continue
if comps[0] == "throw":
continue
if comps[0] == "unreachable":
continue
if comps[0] == "prohibit":
continue
if comps[0] == "blackhole":
continue
if comps[0] == "nat":
continue
if comps[0] == "anycast":
continue
if comps[0] == "multicast":
if comps[0] in (
"unicast",
"broadcast",
"throw",
"unreachable",
"prohibit",
"blackhole",
"nat",
"anycast",
"multicast",
):
continue
if comps[0] == "default":