Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Jan 13, 2025
1 parent d01b575 commit c2bb93a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/async/async-hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AwaitDetector } from '@monti-apm/core/dist/await-detector';
const EventSymbol = Symbol('monti-agent-event');

export const awaitDetector = new AwaitDetector({
onAwaitStart(promise, info) {
onAwaitStart (promise, info) {
if (!info.trace || info.trace.isEventsProcessed) return;

let currentInfo = Kadira._getInfo();
Expand All @@ -13,7 +13,7 @@ export const awaitDetector = new AwaitDetector({
let event = Kadira.tracer.event(info.trace, EventType.Async);
promise[EventSymbol] = event;
},
onAwaitEnd(promise, info) {
onAwaitEnd (promise, info) {
let event = promise[EventSymbol];

if (event && !info.trace.isEventsProcessed) {
Expand All @@ -36,6 +36,7 @@ if (Package.promise?.Promise) {
// This isn't changing the global Promise, and instead is changing the value
// of the Promise variable exported from the promise package.
if (Promise !== global.Promise) {
// eslint-disable-next-line no-native-reassign, no-global-assign
Promise = Package.promise.Promise;
}
}

0 comments on commit c2bb93a

Please sign in to comment.