forked from mirror/misskey
refactor(ApNoteService.ts
): 不要な条件を削除
This commit is contained in:
parent
c234f3afe1
commit
ad7b4e2527
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user