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

fix(NODE-4639): allow PromiseProvider to be null #3412

Merged
merged 1 commit into from Sep 15, 2022

Conversation

nbbeeken
Copy link
Contributor

Description

PromiseProvider fix from #3406

What is changing?

What is the motivation for this change?

The promise provider could have always returned a nullish value, the types were casting away the potential issue. This corrects the issue and allows the PromiseProvider to be unset with null

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: <type>(NODE-xxxx)<!>: <description>
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Sep 14, 2022
@baileympearson baileympearson added Team Review Needs review from team and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Sep 14, 2022
@baileympearson baileympearson changed the title fix(NODE-4639): correct accuracy of return type for PromiseProvider.get and allow clearing with null fix(NODE-4639): allow PromiseProvider to be null Sep 15, 2022
@baileympearson baileympearson merged commit d29b3d9 into main Sep 15, 2022
@baileympearson baileympearson deleted the NODE-4639/promise-provider branch September 15, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
2 participants