Skip to content

Commit 411bc66

Browse files
committed
Remove unnecessary whitespace indentation in 'main.ps1' script
1 parent 2b2b11e commit 411bc66

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

Diff for: scripts/main.ps1

+16-19
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,20 @@ $sync.runspace.Open()
3131

3232
# Create classes for different exceptions
3333

34-
class WingetFailedInstall : Exception {
35-
[string]$additionalData
36-
37-
WingetFailedInstall($Message) : base($Message) {}
38-
}
39-
40-
class ChocoFailedInstall : Exception {
41-
[string]$additionalData
42-
43-
ChocoFailedInstall($Message) : base($Message) {}
44-
}
34+
class WingetFailedInstall : Exception {
35+
[string]$additionalData
36+
WingetFailedInstall($Message) : base($Message) {}
37+
}
4538

46-
class GenericException : Exception {
47-
[string]$additionalData
39+
class ChocoFailedInstall : Exception {
40+
[string]$additionalData
41+
ChocoFailedInstall($Message) : base($Message) {}
42+
}
4843

49-
GenericException($Message) : base($Message) {}
50-
}
44+
class GenericException : Exception {
45+
[string]$additionalData
46+
GenericException($Message) : base($Message) {}
47+
}
5148

5249

5350
$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
@@ -543,16 +540,16 @@ $sync["AutoThemeMenuItem"].Add_Click({
543540
$sync.ThemePopup.IsOpen = $false
544541
Invoke-WinutilThemeChange -theme "Auto"
545542
$_.Handled = $false
546-
})
547-
# Define event handlers for menu items
543+
})
544+
# Define event handlers for menu items
548545
$sync["DarkThemeMenuItem"].Add_Click({
549546
if ($sync.ThemePopup -eq $null) {
550547
Write-Host "Theme Popup is null, this's not allowed to happen in the first place. Please double check your UI code." -ForegroundColor Red
551548
}
552549
$sync.ThemePopup.IsOpen = $false
553550
Invoke-WinutilThemeChange -theme "Dark"
554551
$_.Handled = $false
555-
})
552+
})
556553
# Define event handlers for menu items
557554
$sync["LightThemeMenuItem"].Add_Click({
558555
if ($sync.ThemePopup -eq $null) {
@@ -561,7 +558,7 @@ $sync["LightThemeMenuItem"].Add_Click({
561558
$sync.ThemePopup.IsOpen = $false
562559
Invoke-WinutilThemeChange -theme "Light"
563560
$_.Handled = $false
564-
})
561+
})
565562

566563

567564
# Define event handler for button click

0 commit comments

Comments
 (0)