From 8e914be7420715620cad74fbb020c5e87ac875a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 3 Nov 2020 16:19:29 +0100 Subject: build: migrate to dlint (#8176) This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code. --- op_crates/fetch/26_fetch.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'op_crates/fetch/26_fetch.js') diff --git a/op_crates/fetch/26_fetch.js b/op_crates/fetch/26_fetch.js index c8b2c8794..d0bc6d979 100644 --- a/op_crates/fetch/26_fetch.js +++ b/op_crates/fetch/26_fetch.js @@ -166,6 +166,7 @@ if (typeof str !== "string") { return false; } + // deno-lint-ignore no-control-regex return /^[\x00-\x7F]*$/.test(str); } @@ -1349,7 +1350,8 @@ }); return new Response(null, responseInit); case "follow": - default: + // fallthrough + default: { let redirectUrl = response.headers.get("Location"); if (redirectUrl == null) { return response; // Unspecified @@ -1363,6 +1365,7 @@ url = redirectUrl; redirected = true; remRedirectCount--; + } } } else { return response; -- cgit v1.2.3