fix: remove isNaN in favor of number.isNaN

This commit is contained in:
Eli Bosley
2025-01-27 09:54:02 -05:00
parent 55100daed4
commit e33c7583f7

View File

@@ -17,7 +17,8 @@ export class LogsCommand extends CommandRunner {
@Option({ flags: '-l, --lines', description: 'Number of lines to tail'})
parseLines(input: string): number
{
return isNaN(parseInt(input)) ? 100 : parseInt(input)
const parsedValue = parseInt(input);
return Number.isNaN(parsedValue) ? 100 : parsedValue;
}
async run(_: string[], options?: LogsOptions): Promise<void> {