Skip to content

Commit

Permalink
refactor: there's no need for isInt()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho authored and webwarrior-ws committed Aug 5, 2024
1 parent 2b92657 commit 686f94d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,6 @@ const itemsFromMessage = (str: string) => {
.filter(e => !!e);
};

// Check if a number is int
const isInt = (n: number) => Number(n) === n;

exports.isInt = isInt;

// Check if a number is float
const isFloat = (n: number) => typeof n === 'number' && !Number.isInteger(n);

Expand Down Expand Up @@ -522,7 +517,6 @@ export {
isDisputeSolver,
getFee,
itemsFromMessage,
isInt,
isFloat,
getLanguageFlag,
delay,
Expand Down

0 comments on commit 686f94d

Please sign in to comment.