refactor: 不要なas anyを除去

This commit is contained in:
zyoshoka 2024-02-07 00:11:00 +09:00
parent 4132965807
commit 1af3041b39
No known key found for this signature in database
GPG Key ID: 0C2CB8FBA309A5B8
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export const apiWithDialog = (<E extends keyof Misskey.Endpoints = keyof Misskey
const promise = misskeyApi(endpoint, data, token);
promiseDialog(promise, null, async (err) => {
let title: string | undefined;
let text = err.message + '\n' + (err as any).id;
let text = err.message + '\n' + err.id;
if (err.code === 'INTERNAL_ERROR') {
title = i18n.ts.internalServerError;
text = i18n.ts.internalServerErrorDescription;