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: if not t:
# render the directory as HTML, using the docFactory and Nevow's # render the directory as HTML, using the docFactory and Nevow's
# whole templating thing. # whole templating thing.
dah = DirectoryAsHTML( return renderElement(
req,
DirectoryAsHTML(
self.node, self.node,
self.client.mutable_file_default, self.client.mutable_file_default,
) )
return renderElement(req, dah) )
if t == "json": if t == "json":
return DirectoryJSONMetadata(req, self.node) return DirectoryJSONMetadata(req, self.node)