Skip to content

Commit

Permalink
fix helpers type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Nov 12, 2023
1 parent f3e6356 commit 44805fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/scripts/util/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export const countIPsInRange = (
if (ipType === 'ipv4') {
number = (number << BigInt(8)) + BigInt(parts[i])
} else {
// @ts-expect-error
number =
// @ts-expect-error
(number << BigInt(16)) + BigInt(parseInt(parts[i], 16))
}
}
Expand All @@ -161,4 +161,4 @@ export const countIPsInRange = (
} catch {
return 0
}
}
}

0 comments on commit 44805fd

Please sign in to comment.