Refactor switch statements
This commit is contained in:
parent
67fc0770f3
commit
04e8ae1197
2 changed files with 2 additions and 2 deletions
scripts/Windows/OS/User
|
@ -25,7 +25,7 @@ function New-PersonalUser([Context] $context, [string] $userName)
|
|||
}
|
||||
|
||||
switch (Get-UserStage) {
|
||||
{ $_ -in $null,$creationStage } {
|
||||
{ (-not $_) -or ($_ -eq $creationStage) } {
|
||||
Set-UserStage $creationStage;
|
||||
|
||||
if (-not (Get-LocalUser $userName -ErrorAction SilentlyContinue)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue