better style

This commit is contained in:
meejah 2019-09-11 13:23:35 -06:00
parent f4c8eb5e2f
commit d381d3e92b

View File

@ -217,11 +217,13 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
if not t:
# render the directory as HTML, using the docFactory and Nevow's
# whole templating thing.
dah = DirectoryAsHTML(
self.node,
self.client.mutable_file_default,
return renderElement(
req,
DirectoryAsHTML(
self.node,
self.client.mutable_file_default,
)
)
return renderElement(req, dah)
if t == "json":
return DirectoryJSONMetadata(req, self.node)