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 getObjectExpressionProperty in favor of getProperty #4601

Merged
merged 8 commits into from Mar 20, 2024
Merged

Conversation

zglicz
Copy link
Contributor

@zglicz zglicz commented Mar 19, 2024

Fixes #4271

Simple refactor. Augmented the accepted type of getProperty to not change too much in the places getObjectExpressionProperty was actually used.

@zglicz zglicz self-assigned this Mar 19, 2024
@@ -444,26 +428,43 @@ export function getPropertyWithValue(
return undefined;
}

function getPropertyFromSpreadElement(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a helper method to fight the Cognitive Complexity sonar rule

@vdiez vdiez merged commit 8e96590 into master Mar 20, 2024
16 checks passed
@vdiez vdiez deleted the i4271 branch March 20, 2024 16:00
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.

Drop AST helper getObjectExpressionProperty in favor of getProperty
2 participants