diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2019-04-14 17:18:17 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-04-14 17:18:17 +0900 |
| commit | 054220db704a48b5db3066d660a48c09356e916c (patch) | |
| tree | 066988149192b184e6d4c628e97abdd91395e4d5 /src/remote | |
| parent | Update README.md [AUTOGEN] (#4665) (diff) | |
| download | sharkey-054220db704a48b5db3066d660a48c09356e916c.tar.gz sharkey-054220db704a48b5db3066d660a48c09356e916c.tar.bz2 sharkey-054220db704a48b5db3066d660a48c09356e916c.zip | |
リファクタリング (#4587)
* Use I cap
* Avoid _
* Use default value instead of optional boolean
* Bye useless variable
* Bye verbose try-catch
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/activitypub/request.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/remote/activitypub/request.ts b/src/remote/activitypub/request.ts index 7dc48c15e3..897dd9acac 100644 --- a/src/remote/activitypub/request.ts +++ b/src/remote/activitypub/request.ts @@ -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', |