Switch _.isNumber usage to native versions

Change-type: patch
This commit is contained in:
Pagan Gazzard 2023-10-13 15:14:04 +01:00 committed by Felipe Lalanne
parent 20df54668c
commit ca3faebfc9

View File

@ -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;
}