Remove empty else block (implicit is better than explicit).
This commit is contained in:
parent
bc05366549
commit
5187869cfb
|
@ -559,9 +559,6 @@ class DoctestModule(Module):
|
|||
# Type ignored because this is a private function.
|
||||
return super()._from_module(module, object) # type: ignore[misc]
|
||||
|
||||
else: # pragma: no cover
|
||||
pass
|
||||
|
||||
try:
|
||||
module = self.obj
|
||||
except Collector.CollectError:
|
||||
|
|
Loading…
Reference in New Issue