mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: switched to parseInt
This commit is contained in:
1 parent
a67d1700fc
commit
9dc48c9125
1 file changed
+1
-1
@@ -3,7 +3,7 @@ import errorWithCause from '../node/errorWithCause.js';
|
||||
import { TANKS, tankopedia } from './tankopedia.js';
|
||||
|
||||
export default function resolveTankId(tank: string) {
|
||||
const number = Number(tank);
|
||||
const number = parseInt(tank);
|
||||
|
||||
if (Number.isNaN(number)) {
|
||||
const searchResult = go(tank, TANKS, { keys: ['name'], limit: 1 });
|
||||
|
||||
Reference in new issue
Block a user