Skip to content

Commit

Permalink
Make callback to _startInstrumenting optional
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Nov 22, 2024
1 parent b952b4a commit 82e8864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hijack/instrument.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { hijackDBOps } from './db';
import { wrapRedisOplogObserveDriver } from './redis_oplog';

let instrumented = false;
Kadira._startInstrumenting = function (callback) {
Kadira._startInstrumenting = function (callback = () => {}) {
if (instrumented) {
callback();
return;
Expand Down

0 comments on commit 82e8864

Please sign in to comment.