Skip to content

Commit

Permalink
Drop unnecessary captureStackTrace call (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Mar 20, 2022
1 parent 60ed5cb commit 858c046
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index.js
Expand Up @@ -7,10 +7,6 @@ export class NonError extends Error {
configurable: true,
writable: true,
});

if (Error.captureStackTrace) {
Error.captureStackTrace(this, NonError);
}
}

static _prepareSuperMessage(message) {
Expand Down

0 comments on commit 858c046

Please sign in to comment.