Skip to content

Replaced redundant else if statement with else statement #8016

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

awood0727
Copy link

Resolves #6660

Changes:
In this pull request, my team, which includes @npNSU, @kaybcodes, @SilasVM, and I made a change to line 495, which addressed the error of JavaScript being only able to check for references and not values. I changed the else if statement to an else statement and deleted the conditions. Hopefully, this is not too similar to PR#6662, and it also makes the program run more efficiently by removing a redundant check.

Hey @limzykenneth and @davepagurek, we noticed you two have been working diligently to find a pull request that can resolve the issue. We saw a comment about breaking early. If you have any advice on that, we may be able to implement it. Please let us know what you think. Thank you both for all that you have done.

Screenshots of the change:
image

PR Checklist

Signed-off-by: Amante' Woodley <[email protected]>

Co-authored-by: Nia Perez <[email protected]>
Co-authored-by: Kayla Bobo <[email protected]>
Co-authored-by: Silas Morgan <[email protected]>
Copy link

welcome bot commented Aug 1, 2025

🎉 Thanks for opening this pull request! For guidance on contributing, check out our contributor guidelines and other resources for contributors!
🤔 Please ensure that your PR links to an issue, which has been approved for work by a maintainer; otherwise, there might already be someone working on it, or still ongoing discussion about implementation. You are welcome to join the discussion in an Issue if you're not sure!
🌸 Once your PR is merged, be sure to add yourself to the list of contributors on the readme page !

Thank You!

Copy link
Collaborator

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks to @awood0727 and your team.

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.

this.ingredients.shapes[f] !== [include] always returns true
2 participants