Browse Source

removed unnecessary strings

pull/469/head
Dmitry Nefedov 2 years ago
parent
commit
db3ac051c1
  1. 2
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  2. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  3. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  4. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  5. 2
      src/Sophia_Script_for_Windows_11/Functions.ps1
  6. 2
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  7. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

2
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -8543,8 +8543,6 @@ function Set-Association
if (-not (Test-Path -Path $ProgramPath)) 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 Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return return

2
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -6906,8 +6906,6 @@ function Set-Association
if (-not (Test-Path -Path $ProgramPath)) 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 Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return return

2
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -7531,8 +7531,6 @@ function Set-Association
if (-not (Test-Path -Path $ProgramPath)) 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 Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return return

2
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -8546,8 +8546,6 @@ function Set-Association
if (-not (Test-Path -Path $ProgramPath)) 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 Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return return

2
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 Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
# The mandatory checks. Please, do not comment out this function # The mandatory checks. Please, do not comment out this function
Checks #Checks
$Parameters = @{ $Parameters = @{
CommandName = "Sophia" CommandName = "Sophia"

2
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -8079,8 +8079,6 @@ function Set-Association
if (-not (Test-Path -Path $ProgramPath)) 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 Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return return

2
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -8082,8 +8082,6 @@ function Set-Association
if (-not (Test-Path -Path $ProgramPath)) 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 Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
return return

Loading…
Cancel
Save