Skip to content

Commit 5b5ecd6

Browse files
[Fix]: Remove unnecessary query line splitting for GraphQL error handling
1 parent 8ef8f98 commit 5b5ecd6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/functions/public/API/Invoke-GitHubGraphQLQuery.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
$graphQLResponse = $apiResponse.Response
5959
# Handle GraphQL-specific errors (200 OK with errors in response)
6060
if ($graphQLResponse.errors) {
61-
$queryLines = $Query -split "`n" | ForEach-Object { $_.Trim() }
6261
# Partial success: data was returned alongside errors (per GraphQL spec).
6362
# Emit warnings for the partial errors and return the data.
6463
if ($null -ne $graphQLResponse.data) {

0 commit comments

Comments
 (0)