Updating with results from pylinter

This commit is contained in:
Robert Zajac 2018-10-21 14:16:26 -04:00
parent f538d36947
commit d59a0907b4

View File

@ -8,7 +8,7 @@ class Multiaddr:
protocol_map = dict()
split_addr = addr.split("/")
if len(split_addr) == 0 or len(split_addr) % 2 != 0:
if not split_addr or len(split_addr) % 2 != 0:
raise MultiaddrValueError("Invalid input multiaddr.")
is_protocol = True