Address new linting rules (#851)
Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
co-authored by
philon-
parent
37ad0ac9eb
commit
aaf85943a8
@@ -13,7 +13,7 @@ export function convertIpAddressToInt(ip: string): number | undefined {
|
||||
.split(".")
|
||||
.reverse()
|
||||
.reduce((ipnum, octet) => {
|
||||
return (ipnum << 8) + Number.parseInt(octet);
|
||||
return (ipnum << 8) + Number.parseInt(octet, 10);
|
||||
}, 0) >>> 0
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user