mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-14 22:46:35 +00:00
Switch _.isNumber usage to native versions
Change-type: patch
This commit is contained in:
parent
20df54668c
commit
ca3faebfc9
@ -213,7 +213,7 @@ export class Service {
|
||||
// ulimits
|
||||
const ulimits: ServiceConfig['ulimits'] = {};
|
||||
_.each(config.ulimits, (limit, name) => {
|
||||
if (_.isNumber(limit)) {
|
||||
if (typeof limit === 'number') {
|
||||
ulimits[name] = { soft: limit, hard: limit };
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user