Skip to content

Remove some unnecessary null checks#1801

Merged
shawncal merged 1 commit intomicrosoft:mainfrom
stephentoub:removeunnecessaryculturecalls
Jul 3, 2023
Merged

Remove some unnecessary null checks#1801
shawncal merged 1 commit intomicrosoft:mainfrom
stephentoub:removeunnecessaryculturecalls

Conversation

@stephentoub
Copy link
Member

Motivation and Context

The culture will never be null here so these fallbacks aren't ever used.

Contribution Checklist

The culture will never be null here so these fallbacks aren't ever used.
@stephentoub stephentoub requested a review from a team as a code owner June 30, 2023 21:29
@github-actions github-actions bot added .NET Issue or Pull requests regarding .NET code kernel.core labels Jun 30, 2023
@dmytrostruk dmytrostruk added the PR: ready to merge PR has been approved by all reviewers, and is ready to merge. label Jul 3, 2023
@shawncal shawncal added this pull request to the merge queue Jul 3, 2023
Merged via the queue into microsoft:main with commit 6600204 Jul 3, 2023
shawncal pushed a commit to shawncal/semantic-kernel that referenced this pull request Jul 6, 2023
### Motivation and Context

The culture will never be null here so these fallbacks aren't ever used.

### Contribution Checklist
<!-- Before submitting this PR, please make sure: -->
- [x] The code builds clean without any errors or warnings
- [x] The PR follows SK Contribution Guidelines
(https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
- [x] The code follows the .NET coding conventions
(https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions)
verified with `dotnet format`
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Issue or Pull requests regarding .NET code PR: ready to merge PR has been approved by all reviewers, and is ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants