1
0
forked from mirror/misskey

refactor(ApNoteService.ts): 不要な条件を削除

This commit is contained in:
okayurisotto 2023-07-02 13:58:11 +09:00
parent c234f3afe1
commit ad7b4e2527

View File

@ -201,7 +201,7 @@ export class ApNoteService {
| { status: 'ok'; res: Note }
| { status: 'permerror' | 'temperror' }
> => {
if (typeof uri !== 'string' || !uri.match(/^https?:/)) return { status: 'permerror' };
if (!uri.match(/^https?:/)) return { status: 'permerror' };
try {
const res = await this.resolveNote(uri);
if (res) {