Revert this to be in sync with max line length PSScriptAnalyzer rule

This commit is contained in:
pinguinfuss 2023-03-09 13:39:08 +01:00
parent c272b30cb4
commit a5b430e4ae

View File

@ -258,7 +258,9 @@ function Connect-To {
# Check the Connection State
if (-not $WinSCPSession.Opened) {
# Check the connection state and find out if the session is still open.
Write-Error -Message ('Connection to {0} using Type {1} was established. But now it seems to be lost!' -f $RemoteHost, $Type)
$m = 'Connection to {0} using Type {1} was established. ' -f $RemoteHost, $Type
$m += 'But now it seems to be lost!'
Write-Error -Message $m
}
}
'NetAppFAS' {
@ -317,7 +319,9 @@ function Connect-To {
# Check the Connection State
if (!($WinSCPSession.Opened)) {
# Check the connection state and find out if the session is still open.
Write-Error -Message ('Connection to {0} using Type {1} was established. But now it seems to be lost!' -f $RemoteHost, $Type)
$m = 'Connection to {0} using Type {1} was established. ' -f $RemoteHost, $Type
$m += 'But now it seems to be lost!'
Write-Error -Message $m
}
}
default {