fix flake8 E713 (test-for-membership)

This commit is contained in:
Pavol Rusnak
2023-01-30 11:46:44 +00:00
parent f6bd8684d3
commit eba7319808
9 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -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).