From 2e2bef6f58cd9cefcd437649b20f83a2ca996ec7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 14 Apr 2016 22:12:03 +0200 Subject: Fix tslint check --- client/angular/users/components/login/login.component.ts | 5 ++--- client/angular/videos/components/list/videos-list.component.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'client/angular') diff --git a/client/angular/users/components/login/login.component.ts b/client/angular/users/components/login/login.component.ts index 35dea4f9b..cecf5d2fd 100644 --- a/client/angular/users/components/login/login.component.ts +++ b/client/angular/users/components/login/login.component.ts @@ -27,9 +27,8 @@ export class UserLoginComponent { error => { if (error.error === 'invalid_grant') { alert('Credentials are invalid.'); - } - else { - alert(`${error.error}: ${error.error_description}`) + } else { + alert(`${error.error}: ${error.error_description}`); } } ); diff --git a/client/angular/videos/components/list/videos-list.component.ts b/client/angular/videos/components/list/videos-list.component.ts index b9b440d40..425d2dcfc 100644 --- a/client/angular/videos/components/list/videos-list.component.ts +++ b/client/angular/videos/components/list/videos-list.component.ts @@ -38,7 +38,7 @@ export class VideosListComponent implements OnInit { getVideos() { let observable = null; - if (this.search !== null) {"" + if (this.search !== null) { observable = this._videosService.searchVideos(this.search); } else { observable = this._videosService.getVideos(); -- cgit v1.2.3