mirror of https://github.com/embarklabs/embark.git
refactor(@embark/services_monitor): use Object.keys instead of Object.entries
This commit is contained in:
parent
98400dcef7
commit
d4deb8b990
|
@ -80,7 +80,7 @@ ServicesMonitor.prototype.startMonitor = function () {
|
||||||
self.addCheck(pluginCheck.checkName, pluginCheck.checkFn, pluginCheck.time);
|
self.addCheck(pluginCheck.checkName, pluginCheck.checkFn, pluginCheck.time);
|
||||||
});
|
});
|
||||||
|
|
||||||
Object.entries(this.checkList).forEach(([checkName, check]) => {
|
Object.keys(this.checkList).forEach(checkName => {
|
||||||
try {
|
try {
|
||||||
self.initCheck(checkName);
|
self.initCheck(checkName);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue