Skip to content

Commit 6793e31

Browse files
committed
refactor(library): simplifies implementation in .throwAnyway()
1 parent ddac022 commit 6793e31

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/library/Attempt/error/ActionableError.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ abstract class ActionableError<SomeBrand extends string>
1313
public readonly brand!: SomeBrand;
1414

1515
public throwAnyway(): never {
16-
return NonActionableError.throw(
16+
return NonActionableError.rethrow(this,
1717
'Implementation not specified for actionable error',
18-
{
19-
cause: this,
20-
},
2118
);
2219
}
2320
}

0 commit comments

Comments
 (0)