We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make code easier to read by reducing the level of nesting. High levels of nesting make code more confusing and less readable. For example:
if process.returncode == 0: return stdout.decode(*DECODE_ARGS) else: raise CalledProcessError( process.returncode, args, stdout.decode(*DECODE_ARGS), stderr.decode(*DECODE_ARGS) )
We can remove else, simplify the code:
else
if process.returncode == 0: return stdout.decode(*DECODE_ARGS) raise CalledProcessError( process.returncode, args, stdout.decode(*DECODE_ARGS), stderr.decode(*DECODE_ARGS) )
This is a minor feature, which does not need previous discussion elsewhere
No response
The text was updated successfully, but these errors were encountered:
I prefer the else at making the alternation clearer at a glance.
Sorry, something went wrong.
No branches or pull requests
Feature or enhancement
Proposal:
Make code easier to read by reducing the level of nesting. High levels of nesting make code more confusing and less readable.
For example:
We can remove
else
, simplify the code:Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
The text was updated successfully, but these errors were encountered: