Skip to content

Commit 35b3d51

Browse files
committed
Fixing PSScriptAnalyzer error for Test-GitHubOrganizationMember
Was failing on PSUseOutputTypeCorrectly: The cmdlet 'Test-GitHubOrganizationMember' returns an object of type 'System.Boolean' but this type is not declared in the OutputType attribute.
1 parent c60bb29 commit 35b3d51

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GitHubOrganizations.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ function Test-GitHubOrganizationMember
9797
#>
9898
[Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSShouldProcess", "", Justification="Methods called within here make use of PSShouldProcess, and the switch is passed on to them inherently.")]
9999
[CmdletBinding(SupportsShouldProcess)]
100+
[OutputType([bool])]
100101
param
101102
(
102103
[Parameter(Mandatory)]

0 commit comments

Comments
 (0)