mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Enhancement]: Remove unnecessary "if statement" (#536)
Remove unnecessary "if statement".
This commit is contained in:
parent
5d7527d75e
commit
e56b1736c1
@ -72,7 +72,7 @@ class Registry:
|
||||
assert isinstance(scope, str)
|
||||
self._scope = scope
|
||||
else:
|
||||
self._scope = self.infer_scope() if scope is None else scope
|
||||
self._scope = self.infer_scope()
|
||||
|
||||
# See https://mypy.readthedocs.io/en/stable/common_issues.html#
|
||||
# variables-vs-type-aliases for the use
|
||||
|
Loading…
x
Reference in New Issue
Block a user