Skip to content

Commit b0d1039

Browse files
committed
fix: eslint linting
1 parent a29510c commit b0d1039

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/hub/src/scope.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,11 +450,11 @@ export class Scope implements ScopeInterface {
450450
} else {
451451
const result = processor({ ...event }, hint) as Event | null;
452452
if (isThenable(result)) {
453-
(result as PromiseLike<Event | null>)
453+
void (result as PromiseLike<Event | null>)
454454
.then(final => this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve))
455455
.then(null, reject);
456456
} else {
457-
this._notifyEventProcessors(processors, result, hint, index + 1)
457+
void this._notifyEventProcessors(processors, result, hint, index + 1)
458458
.then(resolve)
459459
.then(null, reject);
460460
}

packages/hub/src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export class SessionFlusher implements SessionFlusherLike {
175175
logger.warn("Dropping session because custom transport doesn't implement sendSession");
176176
return;
177177
}
178-
this._transport.sendSession(sessionAggregates).then(null, reason => {
178+
void this._transport.sendSession(sessionAggregates).then(null, reason => {
179179
logger.error(`Error while sending session: ${reason}`);
180180
});
181181
}

packages/hub/test/hub.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe('Hub', () => {
299299
hub.withScope(scope => {
300300
scope.addBreadcrumb({ message: 'scope breadcrumb' });
301301
const event: Event = {};
302-
scope
302+
void scope
303303
.applyToEvent(event)
304304
.then((appliedEvent: Event | null) => {
305305
expect(appliedEvent).toBeTruthy();

0 commit comments

Comments
 (0)