Skip to content

Commit

Permalink
changed var with let
Browse files Browse the repository at this point in the history
  • Loading branch information
taeguscromis committed Feb 26, 2022
1 parent 1ac19d6 commit 936af9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions units/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ exports.NodeGuard = function (cmdOptions, configOpts, rootPath, guardVersion) {

poolNotifyInterval = setInterval(function () {
try {
var packetData = {
let packetData = {
uri: configOpts.pool.notify.url,
strictSSL: false,
method: "POST",
Expand All @@ -192,7 +192,7 @@ exports.NodeGuard = function (cmdOptions, configOpts, rootPath, guardVersion) {
//*************************************************************//
function waitForCoreToInitialize() {
if (!initialized) {
var duration = moment.duration(moment().diff(startupTime));
let duration = moment.duration(moment().diff(startupTime));

if (duration.asSeconds() > (configOpts.restart.maxInitTime || 900)) {
restartDaemonProcess("Initialization is taking to long, restarting", true);
Expand Down

0 comments on commit 936af9d

Please sign in to comment.