summaryrefslogtreecommitdiff
path: root/cli/js/web/headers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/web/headers.ts')
-rw-r--r--cli/js/web/headers.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/web/headers.ts b/cli/js/web/headers.ts
index 5fd6abc44..d75f87adc 100644
--- a/cli/js/web/headers.ts
+++ b/cli/js/web/headers.ts
@@ -55,7 +55,7 @@ function validateValue(value: string): void {
function dataAppend(
data: Array<[string, string]>,
key: string,
- value: string
+ value: string,
): void {
for (let i = 0; i < data.length; i++) {
const [dataKey] = data[i];
@@ -85,7 +85,7 @@ function dataAppend(
* entry in the headers list. */
function dataGet(
data: Array<[string, string]>,
- key: string
+ key: string,
): string | undefined {
const setCookieValues = [];
for (const [dataKey, value] of data) {
@@ -118,7 +118,7 @@ function dataGet(
function dataSet(
data: Array<[string, string]>,
key: string,
- value: string
+ value: string,
): void {
for (let i = 0; i < data.length; i++) {
const [dataKey] = data[i];
@@ -169,7 +169,7 @@ class HeadersBase {
constructor(init?: HeadersInit) {
if (init === null) {
throw new TypeError(
- "Failed to construct 'Headers'; The provided value was not valid"
+ "Failed to construct 'Headers'; The provided value was not valid",
);
} else if (isHeaders(init)) {
this[headersData] = [...init];
@@ -183,7 +183,7 @@ class HeadersBase {
requiredArguments(
"Headers.constructor tuple array argument",
tuple.length,
- 2
+ 2,
);
this.append(tuple[0], tuple[1]);