-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Refactor private PushAuthorizationRequest #59990
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
Refactor private PushAuthorizationRequest #59990
Conversation
@dotnet-policy-service agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed that this is targeting release/9.0
. The bar for patching releases is pretty high, and I don't think this refactor meets it. Can you retarget this to main
? Thanks.
An exception was created but not thrown. When backtracking the usage of the private method, the PAR-endpoint was already guarded for null/empty value. The initial guard for empty is there for future usages, the call is redundant now.
598ac5a
to
246b106
Compare
@halter73 The branch name is missleading, but the branch is up to date with main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
An exception was created but not thrown. When backtracking the usage of the private method, the PAR-endpoint was already guarded for null/empty value. The initial guard for empty is there for future usages, the call is redundant now.
Refactor private PushAuthorizationRequest
An exception was created but not thrown. Make relevant changes to remove that.
Description
An exception was created but not thrown. When backtracking the usage of the private method, the PAR-endpoint was already guarded for empty PAR-enpoints.
Pass in the PAR-endpoint as non-null reference to the private method. Remove the exception that was created and not thrown.
Existing unit tests never reaches the private method due to guards in the calling method.
I'm not sure which branch this PR should target. It should be compatible with main when cherry-picked.