Skip to content

Commit

Permalink
Get-DbaDbUdf ExcludeSystemUdf correct logic (#9417)
Browse files Browse the repository at this point in the history
  • Loading branch information
pollusb authored Jul 16, 2024
1 parent 8bc9dfb commit 38c253c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Get-DbaDbUdf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function Get-DbaDbUdf {
Write-Message -Message "No User Defined Functions exist in the $db database on $instance" -Target $db -Level Verbose
continue
}
if (Test-Bound -ParameterName ExcludeSystemUdf) {
if ($ExcludeSystemUdf) {
$userDefinedFunctions = $userDefinedFunctions | Where-Object IsSystemObject -eq $false
}

Expand Down

0 comments on commit 38c253c

Please sign in to comment.