From b7178e170466dc550e23e9b08dce9d07d9b4974c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 30 Nov 2018 18:41:33 -0500 Subject: Upgrade Prettier to support BigInt syntax in TS --- js/compiler.ts | 4 ++-- js/url_search_params.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/compiler.ts b/js/compiler.ts index 9ba018932..c9fa4611c 100644 --- a/js/compiler.ts +++ b/js/compiler.ts @@ -180,8 +180,8 @@ export class Compiler return this._moduleMetaDataMap.has(fileName) ? this._moduleMetaDataMap.get(fileName) : fileName.startsWith(ASSETS) - ? this._resolveModule(fileName, "") - : undefined; + ? this._resolveModule(fileName, "") + : undefined; } /** Given a `moduleSpecifier` and `containingFile` retrieve the cached diff --git a/js/url_search_params.ts b/js/url_search_params.ts index cf005fc16..228c36956 100644 --- a/js/url_search_params.ts +++ b/js/url_search_params.ts @@ -117,8 +117,8 @@ export class URLSearchParams { * searchParams.sort(); */ sort(): void { - this.params = this.params.sort( - (a, b) => (a[0] === b[0] ? 0 : a[0] > b[0] ? 1 : -1) + this.params = this.params.sort((a, b) => + a[0] === b[0] ? 0 : a[0] > b[0] ? 1 : -1 ); } -- cgit v1.2.3