From c2bb93a6c59252af386dd9ae37c0692c2d8a7f2b Mon Sep 17 00:00:00 2001 From: zodern Date: Sun, 12 Jan 2025 20:10:01 -0500 Subject: [PATCH] Fix lint errors --- lib/async/async-hook.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/async/async-hook.js b/lib/async/async-hook.js index 73f5ca72..24b4cc41 100644 --- a/lib/async/async-hook.js +++ b/lib/async/async-hook.js @@ -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(); @@ -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) { @@ -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; } }