Skip to content

Commit 2f5480d

Browse files
committed
Correct PSProvideDefaultParameterValue NoViolations test script
1 parent 503d18e commit 2f5480d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
function GoodFunc
22
{
33
param(
4-
[parmaeter(mandatory=$false)]
5-
[string]$Param1=$null
4+
[Parameter(Mandatory=$false)]
5+
[ValidateNotNullOrEmpty()]
6+
[string]
7+
$Param1=$null
68
)
79
$Param1
810
}

0 commit comments

Comments
 (0)