summaryrefslogtreecommitdiff
path: root/packages/backend/src/core
diff options
context:
space:
mode:
authorKisaragi <48310258+KisaragiEffective@users.noreply.github.com>2024-05-29 07:11:29 +0900
committerGitHub <noreply@github.com>2024-05-29 07:11:29 +0900
commit44cafbb9f238e13e079135b96c4a791fb3b7faf0 (patch)
tree9cdc2324734582bd31edb1ba1bed366e2da71e4e /packages/backend/src/core
parentfeat: sentry integration (#13897) (diff)
downloadsharkey-44cafbb9f238e13e079135b96c4a791fb3b7faf0.tar.gz
sharkey-44cafbb9f238e13e079135b96c4a791fb3b7faf0.tar.bz2
sharkey-44cafbb9f238e13e079135b96c4a791fb3b7faf0.zip
refactor: avoid `as any[]` on FetchInstanceMetadataService.ts (#13905)
* refactor: avoid `as any[]` on FetchInstanceMetadataService.ts * apply suggestion Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com> --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/backend/src/core')
-rw-r--r--packages/backend/src/core/FetchInstanceMetadataService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/FetchInstanceMetadataService.ts b/packages/backend/src/core/FetchInstanceMetadataService.ts
index 8d173855f3..aa16468ecb 100644
--- a/packages/backend/src/core/FetchInstanceMetadataService.ts
+++ b/packages/backend/src/core/FetchInstanceMetadataService.ts
@@ -154,7 +154,7 @@ export class FetchInstanceMetadataService {
throw new Error('No wellknown links');
}
- const links = wellknown.links as any[];
+ const links = wellknown.links as ({ rel: string, href: string; })[];
const link1_0 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/1.0');
const link2_0 = links.find(link => link.rel === 'http://nodeinfo.diaspora.software/ns/schema/2.0');