fix flake8 E713 (test-for-membership)
This commit is contained in:
+1
-1
@@ -228,7 +228,7 @@ def lnencode(addr, privkey):
|
||||
# both.
|
||||
if "d" in tags_set and "h" in tags_set:
|
||||
raise ValueError("Cannot include both 'd' and 'h'")
|
||||
if not "d" in tags_set and not "h" in tags_set:
|
||||
if "d" not in tags_set and "h" not in tags_set:
|
||||
raise ValueError("Must include either 'd' or 'h'")
|
||||
|
||||
# We actually sign the hrp, then data (padded to 8 bits with zeroes).
|
||||
|
||||
Reference in New Issue
Block a user