Skip to content

No isolated returns#11

Open
JokinSB wants to merge 3 commits intoSLiCAP:mainfrom
JokinSB:no-isolated-returns
Open

No isolated returns#11
JokinSB wants to merge 3 commits intoSLiCAP:mainfrom
JokinSB:no-isolated-returns

Conversation

@JokinSB
Copy link
Copy Markdown
Contributor

@JokinSB JokinSB commented Oct 14, 2025

A "return" statement is not required when there is nothing to return. An isolated "return" statement returns None, which is also the behavior when the function reaches its end.

Several instances of isolated returns have been removed.

Tested briefly by running myFirstRCNetwork.py and noiseFigures.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant