mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 12:12:55 +00:00 
			
		
		
		
	Remove gratuitous None-check
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user