Skip to content

Commit ef46a24

Browse files
committed
no unwrapping
1 parent 8988bfc commit ef46a24

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/array_result.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,7 @@ export function extractArrayResultError(
166166
case "array result":
167167
return aggregate.errors;
168168
case "outside":
169-
if (aggregate.errors.length === 1) {
170-
throw aggregate.errors[0];
171-
} else {
172-
throw new AggregateError(aggregate.errors);
173-
}
169+
throw new AggregateError(aggregate.errors);
174170
}
175171
}
176172
export function isArrayResult(errors: ReadonlyArray<unknown>): boolean {

0 commit comments

Comments
 (0)