python: style for suricatasc.py

Remove unnecessary return
Better comparison with None
This commit is contained in:
Philippe Antoine
2020-03-14 21:00:42 +01:00
committed by Victor Julien
parent 492504cf62
commit be6f6cc6a2
+1 -2
View File
@@ -77,7 +77,6 @@ class SuricataCompleter:
return next(self.generator)
except StopIteration:
return None
return None
class SuricataSC:
@@ -157,7 +156,7 @@ class SuricataSC:
def connect(self):
try:
if self.socket == None:
if self.socket is None:
self.socket = socket(AF_UNIX)
self.socket.connect(self.sck_path)
except error as err: