diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-07-14 15:24:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 15:24:17 -0400 |
commit | cde4dbb35132848ffece59ef9cfaccff32347124 (patch) | |
tree | cc7830968c6decde704c8cfb83c9185193dc698f /cli/js/web/url_search_params.ts | |
parent | 9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff) |
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/web/url_search_params.ts')
-rw-r--r-- | cli/js/web/url_search_params.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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<sequence<USVString>> 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("&"); } |