1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -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 chunks: string[] = ["hello", "deno", "land"];
const decoder = new TextDecoder(); const decoder = new TextDecoder();
// deno-lint-ignore require-await
async function write(p: Uint8Array): Promise<number> { async function write(p: Uint8Array): Promise<number> {
written.push(decoder.decode(p)); written.push(decoder.decode(p));
return p.length; return p.length;
@ -165,6 +166,7 @@ Deno.test("toReadableCheck", async function (): Promise<void> {
const readChunks: string[] = []; const readChunks: string[] = [];
const encoder = new TextEncoder(); const encoder = new TextEncoder();
// deno-lint-ignore require-await
async function read(p: Uint8Array): Promise<number | null> { async function read(p: Uint8Array): Promise<number | null> {
const chunk = chunks.shift(); const chunk = chunks.shift();
if (chunk === undefined) { if (chunk === undefined) {