Skip to content

Commit

Permalink
fix: JSHint
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoterezov committed Aug 24, 2023
1 parent 0cb769a commit a9c9aa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/LogCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ LogCollector.prototype.stringify = function (someObject) {
* @protected
*/
LogCollector.prototype.formatLogMessage = function (
logLevel /* timestamp, arg2, arg3, arg4... */) {
logLevel /* timestamp, arg2, arg3, arg4... */) { // jshint ignore:line
var msg = '';
for (var i = 1, len = arguments.length; i < len; i++) {
var arg = arguments[i];
Expand Down Expand Up @@ -240,7 +240,7 @@ LogCollector.prototype._storeLogs = function (logs) {
} catch (error) {
console.error('LogCollector error when calling logStorage.storeLogs(): ', error);
}
}
};

/**
* Stores the next batch log entry in the log storage.
Expand All @@ -254,7 +254,7 @@ LogCollector.prototype._storeLogs = function (logs) {
* @private
*/
LogCollector.prototype._flush = function(force, reschedule) {
let logStorageReady = false;
var logStorageReady = false;

try {
logStorageReady = this.logStorage.isReady();
Expand Down
2 changes: 1 addition & 1 deletion lib/Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function log() {
} catch (error) {
// It would be nice to send the error to the logger but this could send us into an endless loop.
// That's why we use only console for logging here.
console.error('An error occured when trying to log with one of the available transports', error);
console.error("An error occured when trying to log with one of the available transports", error);
}
}
}
Expand Down

0 comments on commit a9c9aa2

Please sign in to comment.