Skip to content

Commit

Permalink
Remove an unnecessary type assertion (#12666)
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu authored Dec 15, 2023
1 parent 4178527 commit 5cc3d3c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/server/ActivityPubServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ export class ActivityPubServerService {

@bindThis
public createServer(fastify: FastifyInstance, options: FastifyPluginOptions, done: (err?: Error) => void) {
// addConstraintStrategy の型定義がおかしいため
(fastify.addConstraintStrategy as any)({
fastify.addConstraintStrategy({
name: 'apOrHtml',
storage() {
const store = {} as any;
Expand Down

0 comments on commit 5cc3d3c

Please sign in to comment.