Introduction
return statement causes the control flow to be disrupted, making the else / elif block here unnecessary. This should be refactordd for a better readability.
What to do:
- The issues are listed here
- replace elif block with if block
- decrease nested else block
Important hints
- additional information and code samples can be found here
- refer our Coding Convention Guidlines