summaryrefslogtreecommitdiff
path: root/op_crates/fetch/26_fetch.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-11-03 16:19:29 +0100
committerGitHub <noreply@github.com>2020-11-03 16:19:29 +0100
commit8e914be7420715620cad74fbb020c5e87ac875a2 (patch)
tree2fefc0111f85533de2bd24e54f70c6c1241e3d3b /op_crates/fetch/26_fetch.js
parente736d0f60f6cdf38e2d317ee08a7125de9e57d69 (diff)
build: migrate to dlint (#8176)
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
Diffstat (limited to 'op_crates/fetch/26_fetch.js')
-rw-r--r--op_crates/fetch/26_fetch.js5
1 files changed, 4 insertions, 1 deletions
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;