Replace [void] with $null

This commit is contained in:
ili101
2019-04-08 13:34:31 +03:00
parent 52231254a5
commit 92c97b25c3
6 changed files with 11 additions and 11 deletions

View File

@@ -130,7 +130,7 @@
}
if ($PSBoundParameters.AutoFilter -and ($PSBoundParameters.TableName -or $PSBoundParameters.TableStyle)) {
Write-Warning "Tables are automatically auto-filtered, -AutoFilter will be ignored"
[void]$PSBoundParameters.Remove('AutoFilter')
$null = $PSBoundParameters.Remove('AutoFilter')
}
#We were either given a session object or a connection string (with, optionally a MSSQLServer parameter)
#If we got -MSSQLServer, create a SQL connection, if we didn't but we got -Connection create an ODBC connection