You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix violations for one line switch conditionals (#709)
Consider the following expression:
switch ($x) {
{"a" -eq $_} {"a";break}
{"b" -eq $_} {"b";break}
}
If OnSameLine switch is `on`, this would get formatted to:
switch ($x) { {"a" -eq $_} {"a";break} {"b" -eq $_} {"b";break}
}
With this commit, it ignores these one-line conditional expression and so the output will be the same as the input in this case, i.e.,
switch ($x) {
{"a" -eq $_} {"a";break}
{"b" -eq $_} {"b";break}
}
0 commit comments