Skip to content

Commit 39f26cf

Browse files
fix: Use of ternary operator in Remove-VSTeamDirectAssignment breaks module in Powershell versions < 7 (#551)
1 parent 33e8b14 commit 39f26cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Source/Public/Remove-VSTeamDirectAssignment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function Remove-VSTeamDirectAssignment {
1111

1212
$queryString = @{
1313
'api-version' = '5.0-preview.1'
14-
'ruleOption' = $Preview ? '1' : '0'
14+
'ruleOption' = if($Preview) {'1'} else {'0'}
1515
'select' = 'grouprules'
1616
}
1717

Source/VSTeam.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'VSTeam.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '7.15.1'
15+
ModuleVersion = '7.15.2'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = @('Core', 'Desktop')

0 commit comments

Comments
 (0)