refactor(`ApNoteService.ts`): 不要な条件を削除
This commit is contained in:
parent
c234f3afe1
commit
ad7b4e2527
|
@ -201,7 +201,7 @@ export class ApNoteService {
|
||||||
| { status: 'ok'; res: Note }
|
| { status: 'ok'; res: Note }
|
||||||
| { status: 'permerror' | 'temperror' }
|
| { status: 'permerror' | 'temperror' }
|
||||||
> => {
|
> => {
|
||||||
if (typeof uri !== 'string' || !uri.match(/^https?:/)) return { status: 'permerror' };
|
if (!uri.match(/^https?:/)) return { status: 'permerror' };
|
||||||
try {
|
try {
|
||||||
const res = await this.resolveNote(uri);
|
const res = await this.resolveNote(uri);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
Loading…
Reference in New Issue