From 5c344f7efa7baaa951f1a4703fa7c739285a3e10 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Mon, 16 Jan 2017 17:51:56 -0600 Subject: [PATCH] Remove redundant else --- sanic/request.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sanic/request.py b/sanic/request.py index fbd41696..7f3b87eb 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -145,9 +145,7 @@ class Request(dict): def ip(self): if self._ip is None: self._ip = self.transport.get_extra_info('peername') - return self._ip - else: - return self._ip + return self._ip File = namedtuple('File', ['type', 'body', 'name'])