Revert "WIP(ApImageService.ts
): image.url
をgetApHrefNullable()
に通すかどうか悩んでいる"
This reverts commit aeefb843a8
.
This commit is contained in:
@@ -50,8 +50,6 @@ export class ApImageService {
|
|||||||
throw new Error('invalid image: url not privided');
|
throw new Error('invalid image: url not privided');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO?
|
|
||||||
// const url = getOneApHrefNullable(image.url);
|
|
||||||
if (typeof image.url !== 'string') {
|
if (typeof image.url !== 'string') {
|
||||||
throw new Error('invalid image: unexpected type of url: ' + JSON.stringify(image.url));
|
throw new Error('invalid image: unexpected type of url: ' + JSON.stringify(image.url));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user