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 committed Oct 25, 2023
1 parent c571770 commit 5d27b0c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,6 @@ const itemsFromMessage = (str: string) => {
.filter(e => !!e);
};

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

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

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

0 comments on commit 5d27b0c

Please sign in to comment.