Skip to content

Commit

Permalink
Merge pull request #91 from belgattitude/minor-test-removal
Browse files Browse the repository at this point in the history
Minor fix, remove unused string
  • Loading branch information
belgattitude authored Oct 3, 2022
2 parents ccae650 + 9498cb2 commit 5d79670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stale-nails-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@belgattitude/http-exception': patch
---

Remove hardcoded string in supportsCause function
2 changes: 1 addition & 1 deletion packages/http-exception/src/support/supportsErrorCause.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const supportsErrorCause = () => {
const cause = Symbol('');
return new Error('test', { cause }).cause === cause;
return new Error('', { cause })?.cause === cause;
};

0 comments on commit 5d79670

Please sign in to comment.