Skip to content

Commit 91ce75f

Browse files
🚀 [Refactor]: Replace AddRange with foreach loop for adding context parameters to improve clarity and maintainability in Connect-GitHubApp.
1 parent be2966a commit 91ce75f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/functions/public/Auth/Connect-GitHubApp.ps1‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@
198198
}
199199
[pscustomobject]$contextParams
200200
}
201-
$contextObjects.AddRange($contextParamList)
201+
foreach ($contextParams in $contextParamList) {
202+
$null = $contextObjects.Add($contextParams)
203+
}
202204
$null = $selectedInstallations.Clear()
203205
}
204206

0 commit comments

Comments
 (0)