We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8988bfc commit ef46a24Copy full SHA for ef46a24
src/array_result.ts
@@ -166,11 +166,7 @@ export function extractArrayResultError(
166
case "array result":
167
return aggregate.errors;
168
case "outside":
169
- if (aggregate.errors.length === 1) {
170
- throw aggregate.errors[0];
171
- } else {
172
- throw new AggregateError(aggregate.errors);
173
- }
+ throw new AggregateError(aggregate.errors);
174
}
175
176
export function isArrayResult(errors: ReadonlyArray<unknown>): boolean {
0 commit comments