mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-22 00:57:24 +00:00
Switch _.isNaN usage to native versions
Change-type: patch
This commit is contained in:
committed by
Felipe Lalanne
parent
c9f032e13a
commit
d0cb54537f
@ -386,7 +386,7 @@ export class Service {
|
||||
|
||||
if (config.cpus != null) {
|
||||
config.cpus = Math.round(Number(config.cpus) * 10 ** 9);
|
||||
if (_.isNaN(config.cpus)) {
|
||||
if (Number.isNaN(config.cpus)) {
|
||||
log.warn(
|
||||
`config.cpus value cannot be parsed. Ignoring.\n Value:${config.cpus}`,
|
||||
);
|
||||
|
Reference in New Issue
Block a user