Skip to content

Commit

Permalink
refactor: avoid as any[] on FetchInstanceMetadataService.ts (misske…
Browse files Browse the repository at this point in the history
…y-dev#13905)

* refactor: avoid `as any[]` on FetchInstanceMetadataService.ts

* apply suggestion

Co-authored-by: syuilo <[email protected]>

---------

Co-authored-by: syuilo <[email protected]>
  • Loading branch information
KisaragiEffective and syuilo authored May 28, 2024
1 parent 80f3cb9 commit 44cafbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/FetchInstanceMetadataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 44cafbb

Please sign in to comment.