From bc8f73b185b5191984afa016404ebc782a2502d0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 10 Aug 2024 15:24:15 +0200 Subject: [PATCH] Remove unnecessary code --- scripts/Windows/Scripts/Users.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/Windows/Scripts/Users.ps1 b/scripts/Windows/Scripts/Users.ps1 index e8f0f47f..32b41924 100644 --- a/scripts/Windows/Scripts/Users.ps1 +++ b/scripts/Windows/Scripts/Users.ps1 @@ -9,7 +9,6 @@ $null = New-Module { Creates the configured users. #> function Start-ValhallaUserSetup { - [int] $current = Get-SetupOption $userOption; [string[]] $users = Get-Users; function Add-MicrosoftAccount { @@ -79,7 +78,7 @@ $null = New-Module { Rename-LocalUser $newUser $Name; } - for ($i = $current ?? 0; $i -lt $users.Count; $i++) { + for ($i = 0; $i -lt $users.Count; $i++) { Set-SetupOption $userOption $i; $name = $users[$i]; Write-Host "Creating personal user ``$name``…";