diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-04-24 13:41:23 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-24 07:41:22 -0400 |
| commit | dcd01dd02530df0e799eb4227087680ffeb80d74 (patch) | |
| tree | 8cc1dec75dd17c326fea6d7fe471b7e7a31032f7 /http/racing_server.ts | |
| parent | e1f7a60bb326f8299f339635c0738d28431afa0a (diff) | |
Eslint fixes (denoland/deno_std#356)
Make warnings fail
Original: https://github.com/denoland/deno_std/commit/4543b563a9a01c8c168aafcbfd9d4634effba7fc
Diffstat (limited to 'http/racing_server.ts')
| -rw-r--r-- | http/racing_server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/racing_server.ts b/http/racing_server.ts index c44fc1216..0053fa428 100644 --- a/http/racing_server.ts +++ b/http/racing_server.ts @@ -8,7 +8,7 @@ const body = new TextEncoder().encode("Hello 1\n"); const body4 = new TextEncoder().encode("World 4\n"); function sleep(ms: number): Promise<void> { - return new Promise(res => setTimeout(res, ms)); + return new Promise((res): number => setTimeout(res, ms)); } async function delayedRespond(request: ServerRequest): Promise<void> { |
