From 4db8773a4747969a3c497922e71db1ad1c34b96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Og=C3=B3rek?= Date: Tue, 20 Oct 2020 13:03:42 +0200 Subject: [PATCH] Fix minor linter issues --- packages/core/test/lib/base.test.ts | 4 ++-- packages/serverless/src/gcpfunction/index.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/core/test/lib/base.test.ts b/packages/core/test/lib/base.test.ts index d1a707788f2b..ea8503ecfd00 100644 --- a/packages/core/test/lib/base.test.ts +++ b/packages/core/test/lib/base.test.ts @@ -1,6 +1,6 @@ import { Hub, Scope } from '@sentry/hub'; import { Event, Severity, Span } from '@sentry/types'; -import { logger, SentryError } from '@sentry/utils'; +import { logger, SentryError, SyncPromise } from '@sentry/utils'; import { TestBackend } from '../mocks/backend'; import { TestClient } from '../mocks/client'; @@ -856,7 +856,7 @@ describe('BaseClient', () => { const spy = jest.spyOn(TestBackend.instance!, 'eventFromMessage'); spy.mockImplementationOnce( (message, level) => - new SyncPromise((resolve, _reject) => { + new SyncPromise(resolve => { setTimeout(() => resolve({ message, level }), 150); }), ); diff --git a/packages/serverless/src/gcpfunction/index.ts b/packages/serverless/src/gcpfunction/index.ts index 4ced152a1d68..3132e7d8caab 100644 --- a/packages/serverless/src/gcpfunction/index.ts +++ b/packages/serverless/src/gcpfunction/index.ts @@ -3,7 +3,6 @@ import { Integration } from '@sentry/types'; import { GoogleCloudGrpc } from '../google-cloud-grpc'; import { GoogleCloudHttp } from '../google-cloud-http'; - import { serverlessEventProcessor } from '../utils'; export * from './http';