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: add an optional chain instead of an expression check #805

Closed
wants to merge 2 commits into from

Conversation

syedzubeen
Copy link
Contributor

Description

Changes proposed in this pull request:

Added an optional chain instead of an expression check

Related issue(s)
Fixes #779

@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 Added an optional chain instead of an expression check refactor: add an optional chain instead of an expression check Oct 15, 2023
@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
0.0% 0.0% Duplication

@syedzubeen
Copy link
Contributor Author

Updated.

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.

please check out linter complains

> lint
> tslint -c ./tslint.json --project tsconfig.base.json --format verbose && prettier --check "**/*.{ts,tsx,js,jsx,json,html,css,yaml}"

Checking formatting...
library/src/containers/Messages/MessageExample.tsx
Code style issues found in the above file(s). Forgot to run Prettier?
Error: Process completed with exit code 1.

@derberg
Copy link
Member

derberg commented Dec 18, 2023

closing as no followup

@derberg derberg closed this Dec 18, 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