Skip to content

Commit ebcfbd9

Browse files
committed
Cleanup AutoResponseBuilder
1 parent 32f11f9 commit ebcfbd9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

emmett/routing/response.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ def process(self, output: Any, response) -> str:
6565
return self.route.app.templater.render(self.route.template, output)
6666
except TemplateMissingError as exc:
6767
raise HTTPStringResponse(404, body="{}\n".format(exc.message), cookies=response.cookies)
68-
elif isinstance(output, str):
69-
return output
70-
elif isinstance(output, HTTPResponse):
68+
if isinstance(output, str):
7169
return output
7270
return str(output)

0 commit comments

Comments
 (0)