mirror of
https://github.com/OISF/suricata.git
synced 2026-10-12 02:07:10 +00:00
python: style for suricatasc.py
Remove unnecessary return Better comparison with None
This commit is contained in:
committed by
Victor Julien
parent
492504cf62
commit
be6f6cc6a2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user