From 6f16a335db48e6a1ed06525e76d2da912015a15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Tue, 5 Dec 2017 17:52:25 +0100 Subject: [PATCH] Remove gratuitous None-check --- src/event_handlers/stateful_event_handler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/event_handlers/stateful_event_handler.py b/src/event_handlers/stateful_event_handler.py index 520d958..7e47e5a 100644 --- a/src/event_handlers/stateful_event_handler.py +++ b/src/event_handlers/stateful_event_handler.py @@ -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)