Skip to content

Commit

Permalink
remove new:: for ps3 (#5782)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Jun 18, 2019
1 parent 7fdfbe3 commit ffd51c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/functions/Select-DefaultView.ps1
Expand Up @@ -40,8 +40,7 @@ function Select-DefaultView {
}

$props = ($InputObject | Get-Member | Where-Object MemberType -in 'Property', 'NoteProperty', 'AliasProperty' | Where-Object { $_.Name -notin $ExcludeProperty }).Name
$defaultset =
[Management.Automation.PSPropertySet]::new('DefaultDisplayPropertySet', [string[]]$props)
$defaultset = New-Object System.Management.Automation.PSPropertySet('DefaultDisplayPropertySet', [string[]]$props)
} else {
# property needs to be string
if ("$property" -like "* as *") {
Expand All @@ -58,7 +57,8 @@ function Select-DefaultView {
})
}
$defaultset =
[Management.Automation.PSPropertySet]::new('DefaultDisplayPropertySet', [string[]]$Property)

$defaultset = New-Object System.Management.Automation.PSPropertySet('DefaultDisplayPropertySet', [string[]]$Property)
}

$standardmembers = [Management.Automation.PSMemberInfo[]]@($defaultset)
Expand Down

0 comments on commit ffd51c7

Please sign in to comment.