Skip to content
New issue

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

Remove redundant return in subscribe catch block #3966

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Aleexender
Copy link

Remove redundant return statement in CorePublisher subscribe method

The explicit return statement in the catch block is unnecessary since the method would naturally terminate after reporting the error through reportThrowInSubscribe.

User Impact

Cleaner code with no behavioral changes for end users. This is purely a maintenance improvement that removes redundant code.

Technical Details

The catch block in the subscribe method contained an unnecessary explicit return statement after Operators.reportThrowInSubscribe(). Since the method would naturally terminate after error reporting, this return statement was redundant and has been removed to improve code clarity.

Related Issues

See #2072

Remove redundant return statement in CorePublisher subscribe method

The explicit return statement in the catch block is unnecessary since the method
would naturally terminate after reporting the error through reportThrowInSubscribe.
@Aleexender Aleexender requested a review from a team as a code owner January 14, 2025 15:40
@pivotal-cla
Copy link

@Aleexender Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

1 similar comment
@pivotal-cla
Copy link

@Aleexender Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@Aleexender Thank you for signing the Contributor License Agreement!

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.

2 participants