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

@@ -64,7 +64,7 @@
[String]$NoBlank
)
if ($Range -is [Array]) {
[void]$PSBoundParameters.Remove("Range")
$null = $PSBoundParameters.Remove("Range")
$Range | Add-ExcelDataValidationRule @PSBoundParameters
}
else {