1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-03-21 12:59:24 -05:00

Remove an unnecessary type assertion ()

This commit is contained in:
woxtu 2023-12-15 11:22:49 +09:00 committed by GitHub
parent 417852779f
commit 5cc3d3c873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;