asyncapi-react icon indicating copy to clipboard operation
asyncapi-react copied to clipboard

implemented optional chaning

Open harshit-senpai opened this issue 5 months ago • 2 comments

Optional chaining allows to safely access nested properties or methods of an object without having to check for the existence of each intermediate property manually. It provides a concise and safe way to access nested properties or methods without having to write complex and error-prone null/undefined checks.

Changes proposed in this pull request:

  • ... changed !tags || !tags.length to just !tags?.length

** Resolves #776**

harshit-senpai avatar Jan 08 '24 14:01 harshit-senpai

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] avatar Jan 08 '24 14:01 sonarcloud[bot]

/rtm

derberg avatar Apr 17 '24 17:04 derberg

:tada: This PR is included in version 1.4.8 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

asyncapi-bot avatar Apr 18 '24 10:04 asyncapi-bot