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

refactor: change expression check to option chain #801

Closed
wants to merge 5 commits into from

Conversation

syedzubeen
Copy link
Contributor

Description

Changed the expression to an optional chain

Related issue(s)
Fixes #784

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@derberg
Copy link
Member

derberg commented Oct 4, 2023

@syedzubeen Thanks for the PR. When you contribute to any project, especially open source, you should open a PR only once you are familiarized with contributing guide like https://github.com/asyncapi/asyncapi-react/blob/master/CONTRIBUTING.md

  • please adjust your PR title:
    • use imperative mood in PR title
    • use proper conventional commits prefix (you have a bot comment with details - in your case it is refactor

@syedzubeen syedzubeen changed the title Changing expression check to option chain refactor: change expression check to option chain Oct 4, 2023
@syedzubeen
Copy link
Contributor Author

@derberg my bad. Should've gone through it first.
Would just like to point out that CONTRIBUTING.md has two dead links for:

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

library/src/helpers/message.ts Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Oct 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@derberg
Copy link
Member

derberg commented Oct 16, 2023

looks like already solved with #812

@derberg derberg closed this Oct 16, 2023
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.

Prefer using an optional chain expression instead, as it's more concise and easier to read.
2 participants