From cde4dbb35132848ffece59ef9cfaccff32347124 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 14 Jul 2020 15:24:17 -0400 Subject: Use dprint for internal formatting (#6682) --- cli/js/web/url_search_params.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/js/web/url_search_params.ts') diff --git a/cli/js/web/url_search_params.ts b/cli/js/web/url_search_params.ts index b4d199fbc..f3e247522 100644 --- a/cli/js/web/url_search_params.ts +++ b/cli/js/web/url_search_params.ts @@ -57,14 +57,14 @@ export class URLSearchParamsImpl implements URLSearchParams { }; #handleArrayInitialization = ( - init: string[][] | Iterable<[string, string]> + init: string[][] | Iterable<[string, string]>, ): void => { // Overload: sequence> for (const tuple of init) { // If pair does not contain exactly two items, then throw a TypeError. if (tuple.length !== 2) { throw new TypeError( - "URLSearchParams.constructor tuple array argument must only contain pair elements" + "URLSearchParams.constructor tuple array argument must only contain pair elements", ); } this.#append(tuple[0], tuple[1]); @@ -175,7 +175,7 @@ export class URLSearchParamsImpl implements URLSearchParams { forEach( callbackfn: (value: string, key: string, parent: this) => void, // eslint-disable-next-line @typescript-eslint/no-explicit-any - thisArg?: any + thisArg?: any, ): void { requiredArguments("URLSearchParams.forEach", arguments.length, 1); @@ -212,7 +212,7 @@ export class URLSearchParamsImpl implements URLSearchParams { return this.#params .map( (tuple) => - `${encodeURIComponent(tuple[0])}=${encodeURIComponent(tuple[1])}` + `${encodeURIComponent(tuple[0])}=${encodeURIComponent(tuple[1])}`, ) .join("&"); } -- cgit v1.2.3