Skip to content

Commit

Permalink
Add useful comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Sep 12, 2022
1 parent 6734525 commit 274101c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/lib/instrumenter/src/instrumenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export class Instrumenter {
try {
const res = arg(...args);
if (res instanceof Promise) {
willRestore = true;
willRestore = true; // We need to wait for the promise to finish before restoring
return res.finally(restore);
}
return res;
Expand Down

0 comments on commit 274101c

Please sign in to comment.