1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00

build: fix linting problems (#8431)

This commit is contained in:
Bartek Iwańczuk 2020-11-19 15:19:37 +01:00 committed by GitHub
parent d5772a937b
commit b55cc51351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,6 +143,7 @@ Deno.test("toWritableCheck", async function (): Promise<void> {
const chunks: string[] = ["hello", "deno", "land"];
const decoder = new TextDecoder();
// deno-lint-ignore require-await
async function write(p: Uint8Array): Promise<number> {
written.push(decoder.decode(p));
return p.length;
@ -165,6 +166,7 @@ Deno.test("toReadableCheck", async function (): Promise<void> {
const readChunks: string[] = [];
const encoder = new TextEncoder();
// deno-lint-ignore require-await
async function read(p: Uint8Array): Promise<number | null> {
const chunk = chunks.shift();
if (chunk === undefined) {