Fix lints.
This commit is contained in:
@@ -267,7 +267,7 @@ try {
|
||||
context = args[i + 1];
|
||||
i++;
|
||||
} else if (args[i] === "--gpus" && i + 1 < args.length) {
|
||||
gpus = parseInt(args[i + 1]);
|
||||
gpus = parseInt(args[i + 1], 10);
|
||||
if (Number.isNaN(gpus) || gpus < 1) {
|
||||
console.error(chalk.red("--gpus must be a positive number"));
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user