Skip to content

Conversation

@tomer953
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The code uses a loose equality comparison (==) for the code variable.

Issue Number: N/A

What is the new behavior?

The code now uses strict equality comparison (===) for the code variable, ensuring type safety and preventing unintended type coercion.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

this was introduces in v18.1.0 release, in this PR:
#56764

Replace loose equality (==) with strict equality (===) for the 'code' variable.
This change ensures type safety and prevents unintended type coercion.
@pullapprove pullapprove bot requested a review from dylhunn July 11, 2024 05:49
@angular-robot angular-robot bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Jul 11, 2024
@ngbot ngbot bot added this to the Backlog milestone Jul 11, 2024
@crisbeto crisbeto removed the request for review from dylhunn July 11, 2024 07:50
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels Jul 11, 2024
@atscott
Copy link
Contributor

atscott commented Jul 11, 2024

This PR was merged into the repository by commit 107173c.

The changes were merged into the following branches: main, 18.1.x

atscott pushed a commit that referenced this pull request Jul 11, 2024
Replace loose equality (==) with strict equality (===) for the 'code' variable.
This change ensures type safety and prevents unintended type coercion.
PR Close #56944
@atscott atscott closed this in 107173c Jul 11, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants