Skip to content

Commit

Permalink
remove helper console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MyDrift-user committed Dec 10, 2024
1 parent a2c3100 commit faad84d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions functions/private/Get-WinUtilToggleStatus.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,15 @@ Function Get-WinUtilToggleStatus {
Write-Debug "$($regentry.Name) is false (state: $regstate, value: $($regentry.Value), original: $($regentry.OriginalValue))"
}
if (!$regstate) {
write-host "missing $($regentry.Name)"
switch ($regentry.DefaultState) {
"true" {
write-host "true"
$regstate = $regentry.Value
$count += 1
}
"false" {
write-host "false"
$regstate = $regentry.OriginalValue
}
default {
write-host "default"
Write-Error "Entry for $($regentry.Name) does not exist and no DefaultState is defined."
$regstate = $regentry.OriginalValue
}
Expand Down

0 comments on commit faad84d

Please sign in to comment.