-
Notifications
You must be signed in to change notification settings - Fork 524
Fix typo in docs for ApplicationPreferredRegions #5486
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
base: master
Are you sure you want to change the base?
Conversation
|
@microsoft-github-policy-service agree |
Pilchie
left a comment
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 for the contribution!
It looks like you made a bunch of whitespace changes (maybe changed line-endings?), as well as adding an extra newline on line 1263.
Can you take a look and re-submit without the extra changes.
|
@Pilchie I noted the line endings in the description:
Is CRLF not desired? |
|
Sorry - going to quickly :( @kirankumarkolli - thoughts? |
Missed comment that file already had inconsistent line-endings.
kirankumarkolli
left a comment
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.
Can you please fix the tabs/spaces and ensure that only change?
| /// <summary> | ||
| /// Creates a new CosmosClientOptions | ||
| /// </summary> | ||
| public CosmosClientOptions() |
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.
@copilot please fix the PR to not update newline endings
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.
Pull Request Overview
This PR fixes a grammatical error in the XML documentation for the ApplicationPreferredRegions property by removing a duplicate article "the" from the phrase "If the these invalid regions" to "If these invalid regions". The file was also reformatted with consistent CRLF line endings as specified in .editorconfig.
- Corrected typo in documentation comment for
ApplicationPreferredRegions - Reformatted file with CRLF line endings per
.editorconfigspecification
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| HttpRequestMessage dummyMessage = new HttpRequestMessage(); | ||
| dummyMessage.Headers.Add(HttpConstants.HttpHeaders.UserAgent, value); |
Copilot
AI
Nov 17, 2025
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.
Disposable 'HttpRequestMessage' is created but not disposed.
| HttpRequestMessage dummyMessage = new HttpRequestMessage(); | |
| dummyMessage.Headers.Add(HttpConstants.HttpHeaders.UserAgent, value); | |
| using (HttpRequestMessage dummyMessage = new HttpRequestMessage()) | |
| { | |
| dummyMessage.Headers.Add(HttpConstants.HttpHeaders.UserAgent, value); | |
| } |
| CosmosJsonSerializerWrapper cosmosJsonSerializerWrapper = value as CosmosJsonSerializerWrapper; | ||
| if (value is CosmosJsonSerializerWrapper) |
Copilot
AI
Nov 17, 2025
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.
Variable cosmosJsonSerializerWrapper may be null at this access because of this assignment.
| CosmosJsonSerializerWrapper cosmosJsonSerializerWrapper = value as CosmosJsonSerializerWrapper; | |
| if (value is CosmosJsonSerializerWrapper) | |
| if (value is CosmosJsonSerializerWrapper cosmosJsonSerializerWrapper) |
| if (this.DisableServerCertificateValidationInvocationCallback == null) | ||
| { | ||
| return this.ServerCertificateCustomValidationCallback ?? ((_, _, _) => true); | ||
| } | ||
| else | ||
| { | ||
| return (X509Certificate2 cert, X509Chain chain, SslPolicyErrors policyErrors) => | ||
| { | ||
| bool bValidationResult = true; | ||
| if (this.ServerCertificateCustomValidationCallback != null) | ||
| { | ||
| bValidationResult = this.ServerCertificateCustomValidationCallback(cert, chain, policyErrors); | ||
| } | ||
| this.DisableServerCertificateValidationInvocationCallback?.Invoke(); | ||
| return bValidationResult; | ||
| }; | ||
| } |
Copilot
AI
Nov 17, 2025
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.
Both branches of this 'if' statement return - consider using '?' to express intent better.
It changes the full file and impacts Blame graph for tracking changes. |
Pull Request Template
Description
closes #5485.
Changes the phrase
to
Type of change
Please delete options that are not relevant.