リファクタリング (#4587)

* Use I cap

* Avoid _

* Use default value instead of optional boolean

* Bye useless variable

* Bye verbose try-catch
This commit is contained in:
Acid Chicken (硫酸鶏)
2019-04-14 17:18:17 +09:00
committed by syuilo
parent 97bff010a8
commit 054220db70
8 changed files with 17 additions and 37 deletions

View File

@ -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',