Skip to content

Commit 7ba47b7

Browse files
committed
Combine conditions
1 parent 5ce2ba9 commit 7ba47b7

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

src/core/QueryManager.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,14 +1106,12 @@ export class QueryManager {
11061106
aqr[extensionsSymbol] = result.extensions;
11071107
}
11081108

1109-
if (hasErrors) {
1110-
if (errorPolicy !== "ignore") {
1111-
aqr.error = new CombinedGraphQLErrors(
1112-
removeStreamDetailsFromExtensions(result)
1113-
);
1114-
if (aqr.networkStatus !== NetworkStatus.streaming) {
1115-
aqr.networkStatus = NetworkStatus.error;
1116-
}
1109+
if (hasErrors && errorPolicy !== "ignore") {
1110+
aqr.error = new CombinedGraphQLErrors(
1111+
removeStreamDetailsFromExtensions(result)
1112+
);
1113+
if (aqr.networkStatus !== NetworkStatus.streaming) {
1114+
aqr.networkStatus = NetworkStatus.error;
11171115
}
11181116
}
11191117

0 commit comments

Comments
 (0)