Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
debadutta98 committed Oct 29, 2022
1 parent 8769d47 commit 757fc13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/winston/profiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/

'use strict';

/**
* TODO: add class description.
* @type {Profiler}
Expand All @@ -21,7 +20,7 @@ module.exports = class Profiler {
* @private
*/
constructor(logger) {
if (!logger) {
if (!logger && logger?.constructor?.name !== 'Logger') {
throw new Error('Logger is required for profiling.');
}

Expand Down

0 comments on commit 757fc13

Please sign in to comment.