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 safe access linter warnings #827

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

picccard
Copy link
Contributor

@picccard picccard commented Aug 15, 2024

Overview/Summary

With the new safe-access-linter rule introduced in #826, it's suggested to the use safe dereference operator instead of ternary to check if object contains property.

image

This PR fixes/adds/changes/removes

  1. Use safe dereference where the linter suggests it

Breaking Changes

None

Testing Evidence

None

As part of this Pull Request I have

@picccard picccard mentioned this pull request Aug 15, 2024
10 tasks
@picccard picccard marked this pull request as ready for review August 15, 2024 13:37
Copy link
Contributor

@oZakari oZakari left a comment

Choose a reason for hiding this comment

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

Appreciate this @picccard!!!

@oZakari oZakari added Type: Hygiene 🧹 Things related to testing, issue triage etc. Type: Enhancement ✨ New feature or request labels Aug 19, 2024
@oZakari
Copy link
Contributor

oZakari commented Aug 19, 2024

/azp run validateazcloud

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@oZakari oZakari merged commit 8f23c71 into Azure:main Aug 19, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement ✨ New feature or request Type: Hygiene 🧹 Things related to testing, issue triage etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants