diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-11-15 04:27:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 20:27:37 +0100 |
commit | 90290030469cc7f278492ece67dd783c4d380b43 (patch) | |
tree | abf33a2bd20a8f734563f294aff3c4a440d9d49e /op_crates/fetch/11_streams.js | |
parent | 3d65e57d7c48f5dd1307f83771fe5574d914cea3 (diff) |
build: update dlint to v0.2.10 (#8284)
Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics
for "require-await" rule.
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'op_crates/fetch/11_streams.js')
-rw-r--r-- | op_crates/fetch/11_streams.js | 4 |
1 files changed, 4 insertions, 0 deletions
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]); } |