Replace Tabs with Spaces to follow the conventions

This commit is contained in:
Mr.k 2024-07-31 21:56:56 +03:00
parent 8ed1712523
commit e0bc12ffab
No known key found for this signature in database

View File

@ -48,7 +48,7 @@ function Set-WinUtilUITheme {
throw [GenericException]::new("[Invoke-Theming] Failed to apply theme, StackTrace: $($psitem.Exception.StackTrace)") throw [GenericException]::new("[Invoke-Theming] Failed to apply theme, StackTrace: $($psitem.Exception.StackTrace)")
} }
return $XMLToProcess return $XMLToProcess
} }
@ -59,8 +59,8 @@ function Set-WinUtilUITheme {
throw [GenericException]::new("[Set-WinUtilTheme] Did not find 'config.themes' inside `$sync variable.") throw [GenericException]::new("[Set-WinUtilTheme] Did not find 'config.themes' inside `$sync variable.")
} }
$defaultTheme = $themes."_default" $defaultTheme = $themes."_default"
if (-NOT $defaultTheme) { if (-NOT $defaultTheme) {
throw [GenericException]::new("[Set-WinUtilTheme] Did not find '_default' theme in the themes config file.") throw [GenericException]::new("[Set-WinUtilTheme] Did not find '_default' theme in the themes config file.")
} }
@ -70,9 +70,9 @@ function Set-WinUtilUITheme {
Write-Warning "[Set-WinUtilTheme] Theme '$themeName' was not found." Write-Warning "[Set-WinUtilTheme] Theme '$themeName' was not found."
} else { } else {
$inputXML = Invoke-Theming -XMLToProcess $inputXML -theme $selectedTheme $inputXML = Invoke-Theming -XMLToProcess $inputXML -theme $selectedTheme
} }
$inputXML = Invoke-Theming -XMLToProcess $inputXML -theme $defaultTheme $inputXML = Invoke-Theming -XMLToProcess $inputXML -theme $defaultTheme
} }
catch { catch {