itsHenry35 / ledu

一个用Python编写的乐读视频一键下载器~
https://itshenry35.github.io/ledu/
Apache License 2.0
5 stars 0 forks source link

refactor: refactor unnecessary `else` / `elif` when `if` block has a `raise` statement #22

Closed deepsource-autofix[bot] closed 8 months ago

deepsource-autofix[bot] commented 8 months ago

raise causes control flow to be disrupted, as it will exit the block. It is recommended to check other conditions using another if statement, and get rid of else statements as they are unnecessary.