From c2bea0fa0802a94aa567d84836bdfbfc2be9cd68 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 4 Jun 2016 09:42:51 -0700 Subject: [PATCH] zulip_finish: Remove useless return statement. --- zerver/management/commands/runtornado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/management/commands/runtornado.py b/zerver/management/commands/runtornado.py index fb836e486e..92143f025b 100644 --- a/zerver/management/commands/runtornado.py +++ b/zerver/management/commands/runtornado.py @@ -346,7 +346,7 @@ class AsyncDjangoHandler(tornado.web.RequestHandler, base.BaseHandler): for msg in response['messages']: if msg['content_type'] != 'text/html': self.set_status(500) - return self.finish('Internal error: bad message format') + self.finish('Internal error: bad message format') if response['result'] == 'error': self.set_status(400) @@ -362,4 +362,4 @@ class AsyncDjangoHandler(tornado.web.RequestHandler, base.BaseHandler): # Pass through the content-type from Django, as json content should be # served as application/json self.set_header("Content-Type", django_response['Content-Type']) - return self.finish(django_response.content) + self.finish(django_response.content)