Skip to content

Commit 4fad78d

Browse files
committed
code clean up
1 parent 463f988 commit 4fad78d

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ exclude_lines =
1212
if __name__ == .__main__.:
1313
class .*\bProtocol\):
1414
@(abc\.)?abstractmethod
15+
[run]
16+
omit =
17+
# omit this single file
18+
ellar/core/files/storages/aws_s3.py

ellar/app/main.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def __init__(
6868

6969
self._user_middleware = list(t.cast(list, self.config.MIDDLEWARE))
7070

71-
self._static_app: t.Optional[ASGIApp] = None
72-
7371
self.state = State()
7472
self.config.DEFAULT_LIFESPAN_HANDLER = (
7573
lifespan or self.config.DEFAULT_LIFESPAN_HANDLER
@@ -118,15 +116,6 @@ def _config_logging(self) -> None:
118116
logging.getLogger("ellar").setLevel(log_level)
119117
logging.getLogger("ellar.request").setLevel(log_level)
120118

121-
def _statics_wrapper(self) -> t.Callable:
122-
async def _statics_func_wrapper(
123-
scope: TScope, receive: TReceive, send: TSend
124-
) -> t.Any:
125-
assert self._static_app, 'app static ASGIApp can not be "None"'
126-
return await self._static_app(scope, receive, send)
127-
128-
return _statics_func_wrapper
129-
130119
def _get_module_routes(self) -> t.List[BaseRoute]:
131120
_routes: t.List[BaseRoute] = []
132121

0 commit comments

Comments
 (0)