Skip to content

Commit

Permalink
fix: impossible coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Elin Angelow committed Jul 23, 2024
1 parent 685ca93 commit 32e4f3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ const counter = () => {
* @returns {number}
*/
return () => {
/* c8 ignore start */
if ((Number.MAX_SAFE_INTEGER - 1) === cc) {
cc = 0;
}
/* c8 ignore stop */
return ++cc;
};
};
Expand Down
2 changes: 2 additions & 0 deletions lib/methods/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,10 @@ const Methods = ({
mr.params = r;
} catch (e) {
mr.params = undefined;
/* c8 ignore start */
mr.error = (e?.error?.stack && e?.error) ||
(e?.stack && e);
/* c8 ignore stop */
this.log('error', 'Methods', mr.error, callData);
}
if (!data.id) {
Expand Down

0 comments on commit 32e4f3d

Please sign in to comment.