リファクタリング (#4587)
* Use I cap * Avoid _ * Use default value instead of optional boolean * Bye useless variable * Bye verbose try-catch
This commit is contained in:
committed by
syuilo
parent
97bff010a8
commit
054220db70
@ -41,7 +41,7 @@ export default async (user: ILocalUser, url: string, object: any) => {
|
||||
userId: user.id
|
||||
}).then(ensure);
|
||||
|
||||
const _ = new Promise((resolve, reject) => {
|
||||
await new Promise((resolve, reject) => {
|
||||
const req = request({
|
||||
protocol,
|
||||
hostname: addr,
|
||||
@ -88,8 +88,6 @@ export default async (user: ILocalUser, url: string, object: any) => {
|
||||
req.end(data);
|
||||
});
|
||||
|
||||
await _;
|
||||
|
||||
//#region Log
|
||||
publishApLogStream({
|
||||
direction: 'out',
|
||||
|
Reference in New Issue
Block a user