mirror of
https://github.com/unraid/api.git
synced 2026-01-01 14:10:10 -06:00
fix: remove isNaN in favor of number.isNaN
This commit is contained in:
@@ -17,7 +17,8 @@ export class LogsCommand extends CommandRunner {
|
|||||||
@Option({ flags: '-l, --lines', description: 'Number of lines to tail'})
|
@Option({ flags: '-l, --lines', description: 'Number of lines to tail'})
|
||||||
parseLines(input: string): number
|
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> {
|
async run(_: string[], options?: LogsOptions): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user