From 98addd8ab5a226f654e78b1fe806b5fab6575b68 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 8 Feb 2019 08:03:12 -0500 Subject: [PATCH] formatting updates --- src/models/view/loginUriView.ts | 2 +- src/models/view/loginView.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/models/view/loginUriView.ts b/src/models/view/loginUriView.ts index 74c5638e852..cfdcc0e967c 100644 --- a/src/models/view/loginUriView.ts +++ b/src/models/view/loginUriView.ts @@ -78,7 +78,7 @@ export class LoginUriView implements View { if (this._canLaunch != null) { return this._canLaunch; } - if (this.uri != null && this.match != UriMatchType.RegularExpression) { + if (this.uri != null && this.match !== UriMatchType.RegularExpression) { const uri = this.launchUri; for (let i = 0; i < CanLaunchWhitelist.length; i++) { if (uri.indexOf(CanLaunchWhitelist[i]) === 0) { diff --git a/src/models/view/loginView.ts b/src/models/view/loginView.ts index 66f95bb368c..7c13a33faa5 100644 --- a/src/models/view/loginView.ts +++ b/src/models/view/loginView.ts @@ -31,17 +31,16 @@ export class LoginView implements View { } get canLaunch(): boolean { - return this.hasUris && this.uris.some(uri => uri.canLaunch); + return this.hasUris && this.uris.some((u) => u.canLaunch); } get launchUri(): string { if (this.hasUris) { - const uri = this.uris.find(uri => uri.canLaunch) + const uri = this.uris.find((u) => u.canLaunch); if (uri != null) { return uri.launchUri; } } - return null; }