Skip to content

Commit b8e452b

Browse files
committed
cleanup
1 parent 03d3da5 commit b8e452b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

nicegui/elements/sub_pages.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ def _render_page(self, match: RouteMatch) -> bool:
111111
if not asyncio.iscoroutine(result):
112112
# NOTE: if the full path could not be consumed, the deepest sub pages element must handle the possible 404
113113
if match.remaining_path and not any(isinstance(el, SubPages) for el in self.descendants()):
114-
if asyncio.iscoroutine(result):
115-
result.close()
116114
return False
117115

118116
self._handle_scrolling(match, behavior='instant')

0 commit comments

Comments
 (0)