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: added Handling for null init in VariableDeclarator #963

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

wattanx
Copy link
Collaborator

@wattanx wattanx commented Nov 10, 2023

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

I've added a process to return if the 'init' of 'VariableDeclarator' is null, as there are cases when it can be null.
We would like to avoid walk what we don't need, but it is currently difficult.

For example

let value

definePageMeta({
  layout: 'custom'
})

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@wattanx wattanx requested a review from danielroe November 13, 2023 13:11
@danielroe danielroe merged commit 9190c99 into main Nov 13, 2023
@danielroe danielroe deleted the fix/add-null-guard branch November 13, 2023 14:15
@github-actions github-actions bot mentioned this pull request Nov 13, 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.

2 participants