Skip to content

Commit

Permalink
fix: set watchtimeoutMS outside 'if' block (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
alewitt2 authored Jan 27, 2022
1 parent 874c258 commit afc0511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/EventHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ module.exports = class EventHandler {
if (!Number.isInteger(this._watchTimeoutSeconds)) {
const watchTimeoutSeconds = Number.parseInt(this._watchTimeoutSeconds);
this._watchTimeoutSeconds = (watchTimeoutSeconds > 0) ? watchTimeoutSeconds : 300;
this._watchTimeoutMilliseconds = this._watchTimeoutSeconds * 1000;
}
this._watchTimeoutMilliseconds = this._watchTimeoutSeconds * 1000;

this._logger = params.logger || require('../bunyan-api').createLogger('EventHandler');

Expand Down

0 comments on commit afc0511

Please sign in to comment.