diff --git a/functions/Test-DbaMaxDop.ps1 b/functions/Test-DbaMaxDop.ps1 index 9ba99f6a4a..2d8674b199 100644 --- a/functions/Test-DbaMaxDop.ps1 +++ b/functions/Test-DbaMaxDop.ps1 @@ -211,9 +211,7 @@ function Test-DbaMaxDop { } } } + Select-DefaultView -InputObject $collection -Property ComputerName, InstanceName, SqlInstance, Database, DatabaseMaxDop, CurrentInstanceMaxDop, RecommendedMaxDop, Notes } } - end { - Select-DefaultView -InputObject $collection -Property ComputerName, InstanceName, SqlInstance, Database, DatabaseMaxDop, CurrentInstanceMaxDop, RecommendedMaxDop, Notes - } }