Skip to content

Commit

Permalink
[Enhancement]: Remove unnecessary "if statement" (#536)
Browse files Browse the repository at this point in the history
Remove unnecessary "if statement".
  • Loading branch information
MambaWong authored Sep 18, 2022
1 parent 5d7527d commit e56b173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmengine/registry/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self,
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
Expand Down

0 comments on commit e56b173

Please sign in to comment.