mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 14:51:22 +00:00
Remove gratuitous None-check
This commit is contained in:
parent
26ef730569
commit
6f16a335db
@ -25,8 +25,6 @@ class StatefulEventHandler(EventHandlerBase):
|
||||
if self.generator is None:
|
||||
self.generator = self.event_handler_function(data_json, self)
|
||||
response_anchor, response_data = next(self.generator)
|
||||
if response_anchor is None:
|
||||
return
|
||||
if response_anchor not in self.subscriptions:
|
||||
self.subscriptions.add(response_anchor)
|
||||
self.zmq_sub_socket.setsockopt_string(zmq.SUBSCRIBE, response_anchor)
|
||||
|
Loading…
Reference in New Issue
Block a user