MCPI-Revival / MCPIL

**Deprecated** Launcher for MCPI-Reborn - Use gMCPIL or jMCPIL instead.
https://mcpirevival.tk
GNU General Public License v2.0
37 stars 3 forks source link

Refactor unnecessary `else` / `elif` when `if` block has a `return` statement #18

Closed deepsource-autofix[bot] closed 3 years ago

leha-code commented 3 years ago

Wai what? An independend if statement act differntly ffrom elses ns elifs

torralbaa commented 3 years ago

I just saw this while cleaning my inbox, and this bot was right, though the changes might be difficult to understand. If each of these conditions return, there's no need for an else after it.

torralbaa commented 3 years ago

Please squash if merging.