Skip to content

Commit

Permalink
Fix HQRM
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hughes committed Oct 28, 2024
1 parent e97d35d commit 30af70b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions source/Private/Get-ClassPropertyCustomAttribute.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function Get-ClassPropertyCustomAttribute {
function Get-ClassPropertyCustomAttribute
{
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
Expand All @@ -10,7 +11,8 @@ function Get-ClassPropertyCustomAttribute {
$AttributeType
)

process {
return $Attributes | Where-Object {$_.AttributeType.Name -eq $AttributeType}
process
{
return $Attributes | Where-Object { $_.AttributeType.Name -eq $AttributeType }
}
}
2 changes: 1 addition & 1 deletion source/Private/Get-DscPropertyType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-DscPropertyType
{
return $PropertyType.GenericTypeArguments.Name
}
Default
default
{
return $PropertyType.Name
}
Expand Down
5 changes: 3 additions & 2 deletions source/Private/Get-DscResourceSchemaPropertyContent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ function Get-DscResourceSchemaPropertyContent
'Read'
)

foreach ($key in $sortOrder) {
$orderedProperties += $Property.GetEnumerator() | Where-Object {$_.State -eq $key} | Sort-Object {$_.Name}
foreach ($key in $sortOrder)
{
$orderedProperties += $Property.GetEnumerator() | Where-Object { $_.State -eq $key } | Sort-Object { $_.Name }
}

foreach ($currentProperty in $orderedProperties)
Expand Down

0 comments on commit 30af70b

Please sign in to comment.