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 ?. usage to support older node versions #181

Merged
merged 1 commit into from
Sep 12, 2022
Merged

Conversation

aalmazan
Copy link
Contributor

@aalmazan aalmazan commented Sep 12, 2022

Description of the change

Removes ?. usage to work with older node versions.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fixes

Checklists

Development

  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development
  • No previous tests unrelated to the changed code fail in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached.
  • At least one reviewer has been requested
  • Changes have been reviewed by at least one other engineer
  • The relevant project board has been selected in Projects to auto-link to this pull request

@@ -263,7 +263,7 @@ class Anvil {
throw new Error(`dataType must be one of: ${supportedDataTypes.join('|')}`)
}

const versionNumber = clientOptions?.versionNumber
const versionNumber = clientOptions.versionNumber
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, looks like we access clientOptions above so no need for the ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, was just there in case someone puts in an explicit undefined / null, but I guess at that point they shouldn't do that.

@aalmazan aalmazan merged commit 8658703 into master Sep 12, 2022
@aalmazan aalmazan deleted the bugfix/dot-question branch September 12, 2022 18:32
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