Skip to content

Commit

Permalink
chore(serialize.ts): fix istanbul ignore
Browse files Browse the repository at this point in the history
Signed-off-by: euberdeveloper <euberdeveloper@gmail.com>
  • Loading branch information
euberdeveloper committed Apr 15, 2021
1 parent 741b2c3 commit e16219a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/modules/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ function serializeDecimal(value: number, type: string): Uint8Array {
if (typeof value !== 'number') {
throw new Error(`Invalid ${type}: value must be a number`);
}
/* istanbul ignore next */
if (value < min) {
/* istanbul ignore next */
throw new Error(`Invalid ${type}: value cannot be lower than ${min}`);
}
/* istanbul ignore next */
if (value > max) {
/* istanbul ignore next */
throw new Error(`Invalid ${type}: value cannot be bigger than ${max}`);
}

Expand Down

2 comments on commit e16219a

@vercel
Copy link

@vercel vercel bot commented on e16219a Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on e16219a Apr 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

byteify – ./

byteify-euberdeveloper.vercel.app
byteify-git-main-euberdeveloper.vercel.app
byteify.vercel.app

Please sign in to comment.