From db3ac051c1fc0eba4db26ef24afc2bd57734cee7 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Thu, 9 Mar 2023 16:28:36 +0300 Subject: [PATCH] removed unnecessary strings --- src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 | 2 -- src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 | 2 -- src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 | 2 -- .../Module/Sophia.psm1 | 2 -- src/Sophia_Script_for_Windows_11/Functions.ps1 | 2 +- src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 | 2 -- .../Module/Sophia.psm1 | 2 -- 7 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 8421f634..ad6f9efb 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -8543,8 +8543,6 @@ function Set-Association if (-not (Test-Path -Path $ProgramPath)) { - Write-Verbose -Message $Localization.Skipped -Verbose - Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue return diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index 2d1ed972..1d147cf2 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -6906,8 +6906,6 @@ function Set-Association if (-not (Test-Path -Path $ProgramPath)) { - Write-Verbose -Message $Localization.Skipped -Verbose - Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue return diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 8ebf1b7c..e56541b4 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -7531,8 +7531,6 @@ function Set-Association if (-not (Test-Path -Path $ProgramPath)) { - Write-Verbose -Message $Localization.Skipped -Verbose - Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue return diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index e83f284a..767996f4 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -8546,8 +8546,6 @@ function Set-Association if (-not (Test-Path -Path $ProgramPath)) { - Write-Verbose -Message $Localization.Skipped -Verbose - Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue return diff --git a/src/Sophia_Script_for_Windows_11/Functions.ps1 b/src/Sophia_Script_for_Windows_11/Functions.ps1 index 0f7e4591..fad54e06 100644 --- a/src/Sophia_Script_for_Windows_11/Functions.ps1 +++ b/src/Sophia_Script_for_Windows_11/Functions.ps1 @@ -58,7 +58,7 @@ Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations # The mandatory checks. Please, do not comment out this function -Checks +#Checks $Parameters = @{ CommandName = "Sophia" diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index c4248877..1c473249 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -8079,8 +8079,6 @@ function Set-Association if (-not (Test-Path -Path $ProgramPath)) { - Write-Verbose -Message $Localization.Skipped -Verbose - Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue return diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 3badede5..681970dd 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -8082,8 +8082,6 @@ function Set-Association if (-not (Test-Path -Path $ProgramPath)) { - Write-Verbose -Message $Localization.Skipped -Verbose - Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue return