Skip to content

Commit

Permalink
Remove unnecessary return type
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuibu committed Nov 14, 2022
1 parent 95e9c6b commit def8b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/expect/src/toThrowMatchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ const _createMessageAndCause = (error: Error): string => {
}
};

const createMessageAndCause = (error: Error): string => {
const createMessageAndCause = (error: Error) => {
if (error.cause instanceof Error) {
return _createMessageAndCause(error);
} else {
Expand Down

0 comments on commit def8b86

Please sign in to comment.