From 90290030469cc7f278492ece67dd783c4d380b43 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Sun, 15 Nov 2020 04:27:37 +0900 Subject: build: update dlint to v0.2.10 (#8284) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics for "require-await" rule. Co-authored-by: Bartek IwaƄczuk --- op_crates/fetch/11_streams.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'op_crates') diff --git a/op_crates/fetch/11_streams.js b/op_crates/fetch/11_streams.js index 1c1889e09..549bc9922 100644 --- a/op_crates/fetch/11_streams.js +++ b/op_crates/fetch/11_streams.js @@ -1071,14 +1071,17 @@ throw new TypeError("method is not callable"); } if (algoArgCount === 0) { + // deno-lint-ignore require-await return async () => call(method, underlyingObject, extraArgs); } else { + // deno-lint-ignore require-await return async (arg) => { const fullArgs = [arg, ...extraArgs]; return call(method, underlyingObject, fullArgs); }; } } + // deno-lint-ignore require-await return async () => undefined; } @@ -2490,6 +2493,7 @@ if (typeof transformMethod !== "function") { throw new TypeError("tranformer.transform must be callable."); } + // deno-lint-ignore require-await transformAlgorithm = async (chunk) => call(transformMethod, transformer, [chunk, controller]); } -- cgit v1.2.3