Closed deepsource-autofix[bot] closed 1 week ago
Here's the code health analysis summary for commits 5243f5f..aebf1ec
. View details on DeepSource β.
Analyzer | Status | Summary | Link |
---|---|---|---|
Python | β Success | π― 4 occurences resolved | View Check β |
JavaScript | β Success | View Check β |
π‘ If youβre a repository administrator, you can configure the quality gates from the settings.
The use of
else
orelif
becomes redundant and can be dropped if the last statement under the leadingif
/elif
block is areturn
statement. In the case of anelif
afterreturn
, it can be written as a separateif
block. Forelse
blocks afterreturn
, the statements can be shifted out ofelse
. Please refer to the examples below for reference.Refactoring the code this way can improve code-readability and make it easier to maintain.