Skip to content

Commit 347e4f9

Browse files
Nico OrschelNico Orschel
authored andcommitted
Add warning for potential API version compatibility in Remove-ADOPermission function
1 parent 552ed97 commit 347e4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Functions/AzureDevOps/Remove-ADOPermission.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
}
179179

180180
process {
181-
if ($ApiVersion -like '5.*' -and $sr) {
181+
if ($ApiVersion -like '5.*') {
182182
Write-Warning "The API version '$ApiVersion' may not be compatible with field operations. Consider using '7.0' or later."
183183
}
184184

0 commit comments

Comments
 (0)