Skip to content

fix(migrations): handle empty ngSwitchCase#56103

Closed
naaajii wants to merge 1 commit intoangular:17.3.xfrom
naaajii:fix-56030
Closed

fix(migrations): handle empty ngSwitchCase#56103
naaajii wants to merge 1 commit intoangular:17.3.xfrom
naaajii:fix-56030

Conversation

@naaajii
Copy link
Contributor

@naaajii naaajii commented May 27, 2024

empty ngSwitchCase generate case () { which isn't valid syntax therefore adding quotes will help prevent us migrate empty case if no condition was provided

fix #56030

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?

Issue Number: #56030

control flow cases being generated with no fallback value in them

What is the new behavior?

control flow cases contain single quotes if ngSwitchCase didnt had any value in it

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

empty ngSwitchCase generate `case () {` which isn't valid syntax therefore adding quotes will help prevent us migrate empty case if no condition was provided

fix angular#56030
@naaajii naaajii marked this pull request as ready for review May 27, 2024 16:49
@pullapprove pullapprove bot requested a review from thePunderWoman May 27, 2024 16:49
@JeanMeche
Copy link
Member

Hi, 17.3.x is now LTS (only security fixes and major bugs), this should probably target the main branch.

@naaajii naaajii closed this May 27, 2024
@naaajii naaajii deleted the fix-56030 branch May 27, 2024 17:12
@naaajii
Copy link
Contributor Author

naaajii commented May 27, 2024

thank you for the headsup!

@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 Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants