From 60bae54aa703670a1af28fadf1ee2de784b27261 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sun, 26 Mar 2023 15:40:14 +0200 Subject: [PATCH] fix issues found by flake --- lndclient.py | 1 - lndrestclient.py | 1 - terminal_web.py | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lndclient.py b/lndclient.py index 5033abb..0d05c78 100644 --- a/lndclient.py +++ b/lndclient.py @@ -1,5 +1,4 @@ import abc -import json from channel import Channel diff --git a/lndrestclient.py b/lndrestclient.py index 609557b..95cfaee 100644 --- a/lndrestclient.py +++ b/lndrestclient.py @@ -1,4 +1,3 @@ -import codecs import json import posixpath import time diff --git a/terminal_web.py b/terminal_web.py index 07f40db..f26a71e 100644 --- a/terminal_web.py +++ b/terminal_web.py @@ -20,12 +20,12 @@ class TerminalWeb: self.local_node = None def is_good_inbound_peer(self, remote_pubkey): - if not self.local_node or not "good_inbound_peers" in self.local_node: + if not self.local_node or "good_inbound_peers" not in self.local_node: return False return remote_pubkey in self.local_node["good_inbound_peers"] def is_good_outbound_peer(self, remote_pubkey): - if not self.local_node or not "good_outbound_peers" in self.local_node: + if not self.local_node or "good_outbound_peers" not in self.local_node: return False return remote_pubkey in self.local_node["good_outbound_peers"]