mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-14 23:02:41 +02:00
Add datatype to param()
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($Location = "") # empty means determine automatically
|
||||
param([string]$Location = "") # empty means determine automatically
|
||||
|
||||
function Check { param([int]$Value, [int]$NormalMin, [int]$NormalMax, [string]$Unit)
|
||||
if ($Value -lt $NormalMin) {
|
||||
|
Reference in New Issue
Block a user