Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit bc15d75

Browse files
committed
Changes as per PR comments
1 parent d7d599e commit bc15d75

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DscResource.AnalyzerRules/DscResource.AnalyzerRules.Helper.psm1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ function Test-StatementContainsUpperCase
279279
$StatementBlock
280280
)
281281

282-
$statementBlockRows = Get-StatementBlockAsRows @PSBoundParameters
283-
$statement = [System.Text.RegularExpressions.Regex]::Match($statementBlockRows,'^[a-zA-Z]*').Value
282+
$statement = [System.Text.RegularExpressions.Regex]::Match($statementBlock,'^[a-zA-Z]*').Value
284283
return ($statement -cne $statement.ToLower())
285284
}

0 commit comments

Comments
 (0)