From 8cfac86ae5342a385db263dae2dc25d859011380 Mon Sep 17 00:00:00 2001 From: Negezor Date: Tue, 9 Jan 2024 23:04:20 +1100 Subject: [PATCH] chore: fix eslint errors --- packages/vk-io/src/updates/transports/polling.ts | 2 +- packages/vk-io/src/updates/updates.ts | 2 +- packages/vk-io/src/utils/resource-resolver.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vk-io/src/updates/transports/polling.ts b/packages/vk-io/src/updates/transports/polling.ts index 8be0a2249..ac95f5a2e 100644 --- a/packages/vk-io/src/updates/transports/polling.ts +++ b/packages/vk-io/src/updates/transports/polling.ts @@ -80,7 +80,7 @@ export class PollingTransport { ? server : `https://${server}`; - this.url = new URL(pollingURL!); + this.url = new URL(pollingURL); this.url.search = String(new URLSearchParams({ key, act: 'a_check', diff --git a/packages/vk-io/src/updates/updates.ts b/packages/vk-io/src/updates/updates.ts index d3e9fa64a..38e6b4f5f 100644 --- a/packages/vk-io/src/updates/updates.ts +++ b/packages/vk-io/src/updates/updates.ts @@ -697,7 +697,7 @@ export class Updates { ...this.options, - pollingGroupId: group.id!, + pollingGroupId: group.id, }); this.options.pollingGroupId = group.id!; diff --git a/packages/vk-io/src/utils/resource-resolver.ts b/packages/vk-io/src/utils/resource-resolver.ts index 94bcdfb45..f48b47966 100644 --- a/packages/vk-io/src/utils/resource-resolver.ts +++ b/packages/vk-io/src/utils/resource-resolver.ts @@ -90,7 +90,7 @@ const resolveSlugResource = async ( } return { - id: response.object_id!, + id: response.object_id, type: response.type as IResolvedTargetResource['type'], }; };